Skip to main content

Hi,

I am trying to fill out a web form. I am trying to insert decimal numbers (e.g. "12.34") into a basic numeric input field:

 

<input type="number" placeholder="Price" class="form-control" id="price">

 

and I can't find a way to do it. If I set or append a whole decimal number, only decimals get inserted (everything before the dot and the dot are missing, e.g. 12.34 => 34), and even only inserting the dot symbol into the field doesn't insert anything, same goes for the comma symbol. The element was found via the recorder and everything works normal on type="text" inputs.

Am I doing something wrong? Any help would be appreciated.

 

Thanks

 

Hi @Babič​ ,

 

Use Number: To string (Number: To string) >> Pass this variable instead of hardcoded value in "Enter keystroke Values" section and give a shot?

 

Specify the number of digits you want to see as a decimal in Enter number of digits after decimal (number format) section. PFB Example for your reference.

 

ssign float value to the variable


Thanks for a quick reply. I tried the suggested approach, unfortunately the issue persiststed.

 

However, not sure why, but changing "Time between keystrokes" to anything else than default value 0 (e.g. 1) fixes the problem and the whole number is inserted correctly. There is now some lag before the value is entered, but it works.


Great @Babič​ 


Thanks for a quick reply. I tried the suggested approach, unfortunately the issue persiststed.

 

However, not sure why, but changing "Time between keystrokes" to anything else than default value 0 (e.g. 1) fixes the problem and the whole number is inserted correctly. There is now some lag before the value is entered, but it works.

This solution (of having a non-zero time between keystrokes value) works if the field is on the visible view of the page. However, when the field is somewhere on the page in which I need to scroll down to in order to see, then it doesn’t put text into the field at all.


Reply