Yes/No Variable to display message

Winnie P
Mega Sage

Hello Team - Is there a way to add a message after the 'Yes/No' variable, is answered, ie:find_real_file.png

After a User selects Yes, can you add a message pop up ie: "Please attach your quiz results to this Request"

Thank you.

 

1 ACCEPTED SOLUTION

Hi,

  • Create a YES/No type variable[completed_quiz] I have made with this backend name
  • Create a UI policy find images:Condition: completed_quiz | is | Yes
  • click on dvanced & Set UI script type set to all  
  • add script as shown in the image
  • Execute if true:

function onCondition() {
g_form.showFieldMsg("completed_quiz","Please attach your quiz results to this Request");
}

execute if false:

function onCondition() {
g_form.hideFieldMsg("completed_quiz",true);//backend name of the field should be changed
}

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

View solution in original post

10 REPLIES 10

sriram35
Kilo Guru

Hi Winnie,

 

you can achieve this by using UI Policy. Please refer below screenshots it will help you.

 

1. you need to create a new catalog UI policy  

find_real_file.png

 

2. click on run script

find_real_file.png

 

3. If you select yes in the variable then you will get message.

find_real_file.png 

 

Hope this helps!

If you have any more questions, please let me know.

If I have answered your question, please mark my response as correct and helpful.

Thanks,

Sriram