How to use button for validation?

Hello,
I am using Button Control in form.
I want to achieve validation just like we can use with fd.validators; on saving the form.
How can i validate with use of this button? is there any way i can display a message just like fd.validators;?

Thanks in Advance.

Hello @harshp924,

You can add fd.validate(); code bto the button's click setting, thus the validation of the form will trigger on button click.
image

Hello @mnikitina,
I don't want to restrict user, i just want to show message for missing fields,
I think this will not let users to submit forms until forms if there is any validation remaining?

Thanks.

Hello @harshp924,

If default validation is not applicable to your case, you can add messages to the form using Rich Text or HTML controls and show/hide it dynamically based on the field values.