cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Form -How to make an Input Field Mandatory

Former Member
0 Kudos

Hi,

I have an interactive form .I want to make Email input field as mandatory.

When I choose from object properties Value/TYPE as user entered Required ... It is just giving me a message and conituining.I don't want to continue if we don't have e-mail input.

I tried giving message and it brings up that message and then continues.

Any ideas?

rgds

vara

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vara,

In the click event of the button you can write java script like if the rawValue is null then display a message.

In this case it will not continue until you give some input.

For example:

if(Subform.BUKRS.rawValue == null || Subform.BUKRS.rawValue == "")

{

xfa.host.messageBox("Company Code is mandatory.Please enter some value");

}

Hope it should solve your problem.

With Regards,

Ravi.D

Former Member
0 Kudos

Thank you Both.

Answers (1)

Answers (1)

ChrisSolomon
Active Contributor
0 Kudos

How are you using the form? Through a custom application, HCM Processes and Forms, something else?

Just in general....Interactive Forms typically are "saved", not "submitted".....so their "in form" validations do not trigger as you would expect. Even if marked as required, you may have to come up with another way to actually validate (we do this with generic services on backend). This is even stated in Adobe's own documentation if you look under the Livecycle help...try a search on "required" or "validate" and you will find it. I am actually doing a blog on this now with more details. haha