Hey Everyone,
I'm relatively new still and I know there is the automated page close handling force validation to ensure people fill in a specific field before going to the next page or getting off the screen. Is there a MEL version of this? My reason for asking is because I have 3 fields and they overlap each other and based on another field 1 of the 3 shows up and I want it to be a force stop validation to ensure users answer it. The issue becomes if I assign that validation to all 3 overlapping fields I cannot click off the screen because the other 2 that are hidden are still triggering a validation.
I'm hoping there is a MEL code to do the same thing and I can just add an IF statement around it to set rules to trigger a validation if the other field is x and the validation field becomes unhidden.
I hope this makes sense. Thank you so much for your help!
As long as there is logic about the necessity for completing a field(s) based on another field, it is a simple matter to design a Page Close Handler routine to enforce completion of required fields. There are other approaches to this problem which do not necessarily require a Page Close Handler routine. Please contact me directly as your issue requires more information.
Click on the title bar of the form in vfe. Click ok. You should now see the page dialog. Check use page close handler.
Then in the box try something like this using the names for each of your fields:
{
if (document.one <> "") OR (document.two <> "") OR (document.three <> "") THEN
CLOSEPAGE("TRUE")
else
CLOSEPAGE("FALSE")
endif
}
Brad
Thank you everyone!!!! I completely forgot about page handler. That worked!
Hey everyone thank you again for the above solution however it seems it only works when you click to the next page (which typically the way the form works is great since that's the flow to go to the next page) however there are some times where you are clicking end to sign the form right from the same page and it seems doing this is not triggering the page close handler.
Any solutions to this?