Home › Forums › Quform WordPress › Textfield to allow only digits and symbols. › Reply To: Textfield to allow only digits and symbols.
January 2, 2020 at 7:37 pm #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, “,”);
});
});