I have an input field disabled because dynamically updated. In this case, the alert is not generated. Does anyone know a way to solve this problem?

Comments

attiks’s picture

Title:cleintside validation and send form via ajax» clientside validation and send form via ajax

Can you provide some more information, it's a bit vague to me?

lorisb’s picture

if i set an input disabled = true, the alert is not generated.

attiks’s picture

Disabled fields are not validated since the user cannot change them, if you set the value using code, you can do the validation at that moment.

lorisb’s picture

What is the event that triggers the validation?
Thanks

attiks’s picture

validation is normally triggered on form submit

lorisb’s picture

I should validate after the change event of jquery, do you know a way to do this?

Jelle_S’s picture

Take a look at admin/config/validation/clientside_validation or admin/config/validation/clientside_validation/default if you want the settings to apply to all forms.
You can select to validate fields on blur or even on keyup.

Jelle_S’s picture

Status:Active» Fixed

Since we haven't heard anything from @lorisb in a while I'm assuming this is fixed. If not, feel free to reopen

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary:View changes

further analysis of the problem