Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: ArturoRobles

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By alisoroush7
#829250
hello guys
i have a textbox that is named Price. i want a javacode to not allow pepople entering anything except numbers in that field. for example if they enter a text, a pop up message appear and until they correct it , they can not submit the form.
User avatar
By kirkwg
#829251
Hi,
Why not dynaform > textbox > property > to set validate; no JS coding is needed.
Choose one option below to set the Validate:
    Only integers: ^\d+$
    Only positive or negative integers: ^[\-+]?\d+$
    Integers or decimal numbers: ^[\-+]?\d*\.?\d*$
    Number with up to two decimal digits: ^[\-+]?\d*(\.\d{0,2})?$
    Number with exactly two decimal digits: ^[\-+]?\d*\.\d{2}$
doc FYI: https://wiki.processmaker.com/3.0/Text_and_Textarea_Controls#Example_Regular_Expressions
paper writers legitimacy

As a student you should know where to order your a[…]

Dear All, As per my post above I have spend some t[…]

SCHEDULER MISSING

Your article is very good I like it. and also ever[…]

Data Loss

Hi, In some cases I have a problem, the data is a[…]