commas instead of decimal | XM Community
Skip to main content

I have a numeric question and I am allowing user to enter value with 1 decimal point with default validation. But I noticed that some users in Europe are entering ", " Instead of "." in open field and system is allowing it. Due to this dashboard is not showing correct data, how can I avoid same? 

@Aggarwal , you can use REGEX to remove comma. 
something like- 
 

var input = jQuery(this).val();
var result = input.replace(/,/g, ''); //remove comma

Qualtrics.SurveyEngine.setEmbeddedData("some embedded data",result)

and can use the embedded data for dashboard. let me know if that works.


Leave a Reply