Custom textfield with only number input
-
Hello Greg, me again.
Sorry that I ask so many questions however I really want to get the most out of this tool ??
One thing I would appreciate is to have a custom textfield with only numbers.
F.ex. the price textfield. This textfield only allows numbers however adds a currency sign to it :/ (which is why I cant use the filter-money class).
Would this be possible?
I currently have this:
My wpadverts/includes/functions.php$form["field"][] = array( "name" => "adverts_number", "type" => "adverts_field_text", "order" => 19, "label" => "Followers", "class" => "adverts-filter-number", "is_required" => true, "validator" => array( array( "name" => "is_required" ), ) );
My wpadverts/assets/js/adverts-frontend.js
if($(".adverts-filter-number").length > 0) { $(".adverts-filter-number").autoNumeric('init',{ aSep: '.', mDec: '0'}); }
And for the rest, idk what else I could do so that this would work.
thanks in advance!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Custom textfield with only number input’ is closed to new replies.