Hi nigel. i think there is some better solution here as well.could you advice on this pls.
https://toolset.com/forums/topic/parametric-search-numeric-slider-for-price-range/page/2/
i am ok with not using the slider , but good too if can use.
threr is a custom script to remove the formatting , not sure how effective is this
https://toolset.com/forums/topic/parametric-search-numeric-slider-for-price-range/page/2/
Nigel
Supporter
Languages:
English (English )
Spanish (Español )
Timezone:
Europe/London (GMT+00:00)
Before looking at other solutions (I have a new ticket from you with another library), can you clarify what exactly it is you want with this filter input?
The field is for a price, and you want when people enter a large number it appears with a particular format (e.g. "11,500"), is that simply the issue?
So what specifically do you want the format to be? (Your previous message had spaces rather than commas.)
Hi Nigel. Good day.
Yes the need is exactly as you describe.
No need spaces .not aware of this . Apologies.
I'm just scratching all script to find a solution for this .
About the other ticket. I opened since its new js scripts involvement .we can on hold to that .
Thanks .
Nigel
Supporter
Languages:
English (English )
Spanish (Español )
Timezone:
Europe/London (GMT+00:00)
Then I think this is all you need.
I tested it on my own site and I'm able to enter values like ="14,500" and submit the filter form and the value used in the filter is the numeric value 14500, as required.
You should just need to edit the field name, and you may need a more specific selector for the form, depending on whether there are other forms on the same page.
( function( $ ) {
$( document ).ready( function(){
$("input[name='wpv-wpcf-upvotes']").mask("#,##0", {reverse: true});
});
$('form').submit( function( e ){
var cleanVal = $("input[name='wpv-wpcf-upvotes']").cleanVal();
$("input[name='wpv-wpcf-upvotes']").val( cleanVal );
});
})( jQuery );
Let me know if that works okay for you.
Hi Nigel.
i think the issue is more then this script.
i suspect the custom function to format number is hindering this as well.
could you make the next reply private. ill give you the access to the site just uploaded and the related page in details .
thank you.
Nigel
Supporter
Languages:
English (English )
Spanish (Español )
Timezone:
Europe/London (GMT+00:00)
You have another custom function to format the number?
Your next reply is marked as private—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site, even though I don't intend to break anything.
Please give as many details as I need to find the View in question and see the problem.
Hi ,
i had 2 script running namely autonumeric and mask input.
ive disabled the autonumeric for now.
thanks.
found other alternative.thanks for all your assistance.
Nigel
Supporter
Languages:
English (English )
Spanish (Español )
Timezone:
Europe/London (GMT+00:00)
Hi, I'm glad you found a solution. The queue was extremely busy at the end of last week and I didn't get chance to come back to investigate further.