
Solved
Incremental Digit Entry
Hello,
Can you please help me on how to code to have an incremental digit entry field for a question? I need 1 field for digit entry and 1 field for decimal entry. Something like the screenshot I attached.
!

Best answer by Anonymous
Hello @busmarketing ,
Create a Text entry form question type with two form fields. Paste the below code to the JS(onReady) of the Text entry question
var that = this.questionId;
jQuery("#"+that+" .ControlContainer").css("white-space","nowrap");
jQuery("#"+that+" .InputText:eq(1)").insertAfter(jQuery("#"+that+" .InputText:eq(0)"));
jQuery("<b> </b>").insertAfter(jQuery("#"+that+" .InputText:eq(0)"));
jQuery("#"+this.questionId+" .InputText").attr({"type":"number","min":"0"});
jQuery("#"+that+" .ReadableAlt").hide();
View originalLeave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.