From: Franco I. <fr...@re...> - 2018-11-12 23:44:20
|
Hi folks, I am having some problems with Page Forms + Semantic Mediawiki fields validation. I want my form checks that a fields related with a property with type "number" checks that the field only contains number when the form is submitted. I know that functionality it's already implemented in Page Forms and, after studying the code, I know that it the validation is associated with the class "numberInput" that should be added in the span element that contains the input field. My problem is that the class "numberInput" (neither "URLInput" or "emailInput") are included in my form's code. I took a look into the $other_args array $other_args in 'PageForms/includes/forminputs/PF_TextInput.php' and the elements in it doesn't have the key '[field_type]' defined. I cannot realize why that happens. I already tested with different versions of MW, SMW and PF, but there is no any difference. I think there maybe any error or problem with the semantic property declaration... Could anyone help me or give me any clue? Thanks! Franco. |