Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

SIL Script to copy Values from servals custom fields to one

Franziska Remmele April 21, 2020

Hi, I'd like to realize a SIL script that writes several Values from different Custom fields in a new custom field.

I have a text field and a cascading field. From there should be generated a new text in a new custom field.

It should look like:
Cascading field: Option1 , Option 2
Textfield:

Value from Cascading field Option 1_Value from text field_Value cascading field Option 2

 

Thanks

1 answer

1 accepted

0 votes
Answer accepted
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 21, 2020

Hello @Franziska Remmele

You script would look like this:

#{text_field2} = "Cascading field: " + replace(#{cascading_list}, "|", ",") + "\nTextfield: " + #{text_field};

Please change  text_field2, cascading_list, text_field with the names of your custom fields.

Franziska Remmele April 21, 2020

Hi @Alexey Matveev ,

Thanks a lot

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 21, 2020

@Franziska Remmele

You are most welcome!

Suggest an answer

Log in or Sign up to answer