2 Replies Latest reply: Sep 16, 2014 4:30 AM by Xen83 RSS

    Required field

    Xen83 Community Member

      How can i make an field require an input before they van type in the next field.

       

      Is there a code?

        • 1. Re: Required field
          sonya1 Community Member

          Him

           

          On Exit event, write the below code

          Textfield1.mandatory = "error";

          xfa.host.setFocus(this);

           

          another solutions is

          if(Textfield1.rawValue == "" || Textfield1.rawValue == null)

          {

          app.alert("This is an mandatory field");

          xfa.host.setFocus(this);

          }

          • 2. Re: Required field
            Xen83 Community Member

            Tnx!

             

            When i use the code for more than one field i get an error.

             

            Adobe will give an error for all field before i can type new info in the field.