Reply To: Textfield to allow only digits and symbols.

Home Forums Quform WordPress Textfield to allow only digits and symbols. Reply To: Textfield to allow only digits and symbols.

#30420
erman4764
Participant

I want to write for friends who do not know;

This worked for me;

Forms – Settings – Custom CSS & JS – Custom JavaScript.
Paste code below. Dont forget to replace unique id of that item.

$(‘.quform-field-1_12’).keyup(function (event) {
$(this).val(function (index, value) {
return ‘$’ + value.replace(/\D/g, “”).replace(/\B(?=(\d{3})+(?!\d))/g, “,”);
});
});

Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy