I have a text box that if the user types in text will make a checkbox required. All this is working fine now.
However, if the user goes back and deletes the information typed in the text field, the message box still displays and the checkbox is still outlined in red indicating it's required. Can I prevent the message box and take off the red outline if the text box has been cleared?
Here is the script on the exit event of the text box:
if ((this.rawValue != "null") || (this.rawValue != ""))
{
threeWM.mandatory = "error";
app.alert("Please indicate that you have reviewed the similar profile and approve it");
}
else
{
threeWM.mandatory = "disabled";
}
Thanks,
MDawn
Solved! Go to Solution.
Views
Replies
Total Likes
Not sure why it works this way and not the other but use this:
if (!this.isNull)
Views
Replies
Total Likes
Not sure why it works this way and not the other but use this:
if (!this.isNull)
Views
Replies
Total Likes
Below script would work
if (this.rawValue != null)
{
threeWM.mandatory = "error";
app.alert("Please indicate that you have reviewed the similar profile and approve it");
}
else
{
threeWM.mandatory = "disabled";
}
Thanks
Vjay
Good catch Vijay, I missed that the null had quotation marks around it.
Views
Replies
Total Likes
Thanks to all who helped. It's working correctly now.
MDawn
Views
Replies
Total Likes
Views
Likes
Replies