Disable Form Button, Show alert message in Kentico12 Forms

Geo Neeliyara asked on October 19, 2020 12:16

Hi,

I just want to disable the submit button and show an alert message depend on the form field value. Is that possible to do through Kentico Forms? How can i do the customization for this request?

Regards, Geo

Correct Answer

Dmitry Bastron answered on October 22, 2020 18:48

For it to appear for checkbox I believe it should be implemented as ValidationRule<bool> type as checkbox is stored as bool. Could you post here the code of your validation rule? This might be helpful.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Geo Neeliyara answered on October 19, 2020 23:01

Hi,

I am looking for something similar to the below link.

https://devnet.kentico.com/questions/set-radio-button-option-to-display-custom-message-and-not-submit-form-if-selected

Can anyone help me on this. Any help will be much appreciated.

Regards, Geo

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on October 21, 2020 17:46

Hi Geo,

You can implement some custom field validation rules that will prevent the form from being submitted until the validation passes. But it's not possible to disable the submit button. The user will be able to click the submit button and will see your custom validation error message.

0 votesVote for this answer Mark as a Correct answer

Geo Neeliyara answered on October 22, 2020 16:22

Hi Dmitry,

I am able to disable submit by adding jQuery code to the page. Is that possible to add validation rule to checkbox? i added a new rule as per the link you provided but it is not showing for checkbox. validation rule showing for textinput and radion button.

Do you have any idea on this?

Regards, Geo

0 votesVote for this answer Mark as a Correct answer

Geo Neeliyara answered on October 22, 2020 21:21

Many Thanks Dmitry... ValidationRule

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.