deafult value depending of selected value on cascading field
Hi fidel, i have cascading custom fileld "create external issue". i want to create a post function that if on the first level the value will be " x" and on the second level the value will be"None" the value on the second level will be z
please see screenshot attached.
thank you
Comments (8)
-
repo owner -
reporter Hi Fidel, Thank you. It's working very well with English but it doesn't work when I try it with Hebrew. Can I use the cascading field Id (OptionId13849, selectedValue=15101)
Thank you.
בברכה מיכאל שכטר | צוות בקרה | מטה אגף מערכות מידע | איילון חברה לביטוח טלפון: 072-2227393| E-mail: Michael-sc@ayalon-ins.co.il
-
repo owner I have managed to implement successfully the behavior you describe using "Copy a parsed text to a field" post-function with a configuration similar to the one shown in the following screenshot:
I have used the hebrew characters in your signature, and my example obviously doesn't make sense. Sorry, for that, but I can't read Hebrew.
-
repo owner - changed status to resolved
I close the issue. Please, reopen it if the solution provided doesn't work.
-
reporter Hi, Sorry but I reported a wrong version. my version is 2.2.8. I don't see the conditional execution section.
-
repo owner - changed version to 2.2.8
-
repo owner Use "Copy a parsed text to a field" post-function with the following configuration:
- Target field: cascading select custom field
- Parsing mode: advanced
- Text to be parsed:
(%{nnnnn.0} = "level_0_value" AND %{nnnnn.1} = null) ? "level_0_value, level_1_value" : %{nnnnn.0} + ", " + %{nnnnn.1}
replacing:
- nnnnn with field code of cascading select custom field.
- level_0_value is the value of the first level in the cascading select field.
- level_1_value is the default value of the second level when first level is level_0_value.
-
reporter Thank you very much !!
בברכה מיכאל שכטר | צוות בקרה | מטה אגף מערכות מידע | איילון חברה לביטוח טלפון: 072-2227393| E-mail: Michael-sc@ayalon-ins.co.il
- Log in to comment
Hi Michael,
Use any of the following setting rules in "Set a field as a function of other fields":
1) Type 1 setting rule:
2) Type 2 setting rule:
replacing strings valueLevel1 and defaultValueLevel2 with the corresponding options in cascading select field.