Forum OpenACS Development: Re: Invalid input syntax for integer

Posted by Gustaf Neumann on
The proper way for HTML5 is to use an "input" field with type "number" and an integer "step", maybe a "min"/"max" value [1]. The HTML5 input types with their attributes are supported by the xowiki form fields, which are not integrated (yet) with ad_forms.

For the ad_page_contract, you do not necessarily have to have a validate block, but you should use in the "argspec" the type "integer "(or "naturalnum", etc.) [2]. The validate block is just needed for detailed checks (check for certain integers, checks against the db, etc.)


Posted by Iuri Sampaio on
Thanks! Nice reference, btw. I didn't know