Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Require input conditionally

$
0
0

I've created a form with sections that require input based on whether or not a user has entered a title for that section.  However, I cannot get my the script to trigger a message box prior to submitting the form (using a custom button).  Basically, if the user enters any value for field1, they should be required to enter a value for field2

This may be a simple error but my experience with Javascript is limited.

 

form1.#subform[0].Button1::mouseDown - (JavaScript, client)

if (xfa.resolveNode("form1.#subform.TextField3")>"0" && xfa.resolveNode("form1.#subform.Reason_NatureofChange-1")=="0")

{

//xfa.host.messageBox("Please enter a Reason/Nature of Change for every change section submitted.")

}

 

Thanks in advance


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>