Only numbers can be entered into the Text Entry object

I want to limit the Text Entry object to only allow numbers to be entered. What should I do for this? @QuynhAnh_Vu @Hang

Hi Cemile,

Please add the following JavaScript code to the On Load event of the slide to achieve that:

var textInput = prez.object('name').textNode;
$(textInput).attr({type: 'number'});

Regards,

1 Like

Thanks for your help, Hang

1 Like