Hi,
When clicking the ‘Complete’ button, is there a way to send the number value as a decimal?
eg:-
if I provide the value 110, I’d like it to be sent as 110.00
How to send decimal number to api from a number type text box?
Show previous comments
(0)
Comments
(0)
Sign in to comment on this post
Answers approved by surveyjs Support
Hi Shobhit,
To allow SurveyJS Forms to save entered values as numbers, enable the number
input type for your Single-Line Text input question. If you always want to add the decimal part to survey response values, you can modify survey answers before sending them to your storage. An example on how to modify survey answers is available in our documentation: Modify Survey Results.
Please let me know if you have further questions.