Highlighted

Tab out required field validation on numeric field

Avatar

Avatar

deepakt1812

Avatar

deepakt1812

deepakt1812

09-02-2018

Hi,

I am using a numeric field in my adaptive form. Even though I mention it as a required field, when I exit out of the field, the validation is not being triggered. Only when I try to submit the form, the required field validation is being triggered. However, for a text field which is a string in my JSON data model, the validation is being triggered right when I exit out of the field. Should I add custom logic for this? Or is there a way to do it OOTB?

Thanks in advance for the help.

Replies

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

10-02-2018

I thought validation only occurs when you submit. Unless the form is bring submitted - why would you want validation logic to fire?

Highlighted

Avatar

Avatar

deepakt1812

Avatar

deepakt1812

deepakt1812

10-02-2018

Our project needs the validation to trigger if the user exits out of the field. It does work for a string but not if the field is a number in the data model.

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

10-02-2018

I do not know if that is supported - checking with the team. Like I said however - only seen validation fire in web sites when a form is submitted.

Highlighted

Avatar

Avatar

deepakt1812

Avatar

deepakt1812

deepakt1812

10-02-2018

Thank you . That would be helpful.

PNC Credit Card Application  Check this application and exit from the fields without filling anything. You can use it as an example .