SOLVED

Visibility Rule: how to set a default value for each rule?

Go to solution
Cecile_Maindron
Level 10

Visibility Rule: how to set a default value for each rule?

Hello,

I know how to set a default value for radio buttons when the visibility rule is disabled. However I don't know how to set a different default value per rule.
Let me explain: If somebody is based outside the US, I just want to show the following 2 radio buttons and set as a default value option 1:

0EM50000000SqFN.jpg

So far, so good.
However for the US, I have other options and I need to define another default value. How do I do that?
0EM50000000SqFS.jpg

Thanks.

Cécile @ Talend

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Visibility Rule: how to set a default value for each rule?

@Cécile I see your point -- it doesn't take the '|selected' entry within a VR.  I think to set a different default for each VR, you would need to use a JS hook.  It would be simple, but it would be outside the realms of WYSIWYG and HTML.

View solution in original post

4 REPLIES 4
Josh_Hill13
Level 10 - Champion Alumni

Re: Visibility Rule: how to set a default value for each rule?

Did you place all of the possible options at the original field level, BEFORE you clicked on Visibility Rules?
Cecile_Maindron
Level 10

Re: Visibility Rule: how to set a default value for each rule?

not I just add a series of options.

Should I add the 3 possible options here:
0EM50000000SqFX.jpg

And then under visibility rules say:
- if Inferred Country is United States
option 1
- if Inferred Country is not United States
option 2
option 3

?
 

SanfordWhiteman
Level 10 - Community Moderator

Re: Visibility Rule: how to set a default value for each rule?

@Cécile I see your point -- it doesn't take the '|selected' entry within a VR.  I think to set a different default for each VR, you would need to use a JS hook.  It would be simple, but it would be outside the realms of WYSIWYG and HTML.
Cecile_Maindron
Level 10

Re: Visibility Rule: how to set a default value for each rule?

OK. Thanks Sanford.