Skip Navigation

[Resuelto] input type atttr conflict

This support ticket is created hace 6 años, 11 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Este tema contiene 23 respuestas, tiene 2 mensajes.

Última actualización por Nigel hace 6 años, 11 meses.

Asistido por: Nigel.

Autor
Mensajes
#598723

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/
#598813

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: 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.)

#598814

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 .

#598819

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: 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.

#598899

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.

#598911

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: 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.

#598977

Hi ,

i had 2 script running namely autonumeric and mask input.
ive disabled the autonumeric for now.

thanks.

#599449

found other alternative.thanks for all your assistance.

#599720

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: 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.