Closed landsman closed 8 years ago
Hi, probably included code of netteForms.js must be updated (if that works in official netteForms.js). EDIT: Yes, it was fixed in official netteForms.js, I'll update this script soon.
Thanks
Commited update, please try it and let me know if everything works as before as I didn't test it.
No change.
$form->addText("beforeWeight", "Váha před: ")
->setType('number')
->addRule(Form::MAX_LENGTH, "Maximálně čtyř místná váha", 5)
->setRequired();
EDIT: this works:
$form->addText("afterWeight", "Váha po: ")
->setType('number')
->addRule(Form::MAX_LENGTH, "Maximálně čtyř místná váha", 5)
->setAttribute('step', "0.1")
->setRequired();
Could you check how it works in original netteForms.js? It should behave the same. So eventually you might want to create issue there,
I think that with "step" attribute it is fine.
Ok, so I'm closing this.
Hi,
if i have input[type=number] and want type decimal format number, validator returning "Please enter a valid value". I am also set: "step=0.5" and without change.