How to pop up the message while check the checkbox?

yammeneh minnii
Tera Contributor

Hi,

Need to pop up the message without check the check box and the check box should be mandatory field

please help me on this

Regards,

yamini.

2 REPLIES 2

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

Firstly, only place where a checkbox should be mandatory is where is it non optional. For eg, unless you accept something you cannot move forward. If you make a check box mandatory you take force the user to check the box or walk away.

To Popup a field, you need to write a UI policy and you can add the condition that <check box> is true & uncheck the box that says onload. this way it will run only when some checks the box.

In the Script part you can add the code to pup up(alert/ui page or whatever you want to use)

-Anurag

-Anurag

ricker
Tera Guru

yammenen,

Without more detail to your question it sounds like you want a checkbox to be mandatory and show a message on submit if it's not checked.  

All you need to do is set mandatory to true on the variable or field (you didn't say) and it will have to be checked in order to submit....no scripting needed.

Rick.

P.S. adding more detail to your future questions will help you get better help!