cancel
Showing results for 
Search instead for 
Did you mean: 

Required fields and submit button

Former Member
0 Kudos

Dear all,

I faced to a strange problem.

I marked some fields as Type - User Entered Required.

I created a button which is declared as Submit button.

When I clicked on my button, the required fields are highlighted (red border).

But when I filled in my field, the red border is always there, it doesn't disappear.

Could you tell me how to change the standard message error of the submit button ? I don't want a message on each field but only one when I clicked on the button.

for the moment, I did

if the field is empty, then color the background of the field on the submit button

On each field, if the value is filled in, I remove the background color

Thanks

Véronique

Accepted Solutions (1)

Accepted Solutions (1)

andrs_sarcevic
Contributor
0 Kudos

I guess that's the standard behavior of "User Entered - Required". If you want to have only one error message per all required fields, you'll need to do some coding.

Use two buttons, one regular (label 'Submit') and the other submit (hidden). When the user clicks your regular button, check all mandatory fields. If everything is in order:

RealSubmitButton.execEvent("click");

Hope this approach helps you.

Cheers!

Former Member
0 Kudos

Thanks for your reply, I will try to do it.

Waiting for an answer, I have created a regular button and I have checked all my fields and added a red border at this time.

Bye

véronique

Answers (0)