How Can I Check If a Field Is Empty in a UI Policy Script

johnfeist
Mega Sage
Mega Sage

As part of building a UI policy script I need to check if a field is empty.  I've tried all sorts of variations on the theme of

if (g_form.u_my_field.nil() )

No matter how I configure it, appending the .nil() creates an error in the script.  Is there a different function for client side scripts?

Thanks for any suggestions.

John

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster
1 ACCEPTED SOLUTION

SanjivMeher
Kilo Patron
Kilo Patron

You can to check using below  condition

 

if (g_form.getValue('fieldname')=='')


Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

2 REPLIES 2

SanjivMeher
Kilo Patron
Kilo Patron

You can to check using below  condition

 

if (g_form.getValue('fieldname')=='')


Please mark this response as correct or helpful if it assisted you with your question.

Thank you Sanjiv, that's exactly what I was looking for.

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster