cancel
Showing results for 
Search instead for 
Did you mean: 

How to make Mandatory field in adobe form

Former Member
0 Kudos

Hi Experts,

I have a text field in adobe form,.If user could not interact this form, without filling the text field..can you please give me the suggestion?

Thanks,

Hans

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

In the layout definition of the form, select your field . In the tab object, sub-tab Value , set the field as mandatory ...that's all folks .

Best regards.

Former Member
0 Kudos

Hi Hans,

Using Javascript, you can do like :

if(this.rawValue.IsNull)

{

xfa.host.messageBox("Please enter value");

xfa.host.setfocus(CompleteFieldName);

}

Regards,

Arafat

vaibhav_tiwari
Contributor
0 Kudos

Hi,

Write the following script at the exit event of your text field.

if ( $.rawValue == null )
then
$host.messageBox("Please Enter Value")
$host.setFocus("TextField1");
endif

Here TextField1 is the name of the text field.

Regards,

Vaibhav Tiwari.

chintan_virani
Active Contributor
0 Kudos

Hans,

In addtion to what Vaibhav said, this can be done withotu scripting as well.

Select the field --> Goto Value tab --> Select Type as User Entered - Required and write the error message in Empty message field.

Chintan

Former Member
0 Kudos

Hi Chintan Virani,

If we put field as required it is showing field with read border but it is possible to  put "*" mark instead of

red box.