I am trying to write a rule that sets the value of a field with another field's value that is not known at design time.
Depending on which option is selected (1,2,...) I want to select the value from fields: comm_1, comm_2, comm_3,....., comm_n and put it into Field A
So I have 3 fields involved in this rule.
#1 The option group field that the user will select <-- Known (this is the field the rule is set on)
#2 The field that will get the value <-- Known
#3 The field that has the value I need to set #2 above <-- Unknown at design time
I tried this and it does not work:
concat("../my:comm_1text/my:comm_", .)
When I select option 2, I get this value in Field A:
../my:comm_1text/my:comm_2 <=== this is the name of the field that has the value.
Any suggestions?