Skip Navigation

[Resolved] Date time field CSS removed with ajax filter view

This thread is resolved. Here is a description of the problem and solution.

Problem:
Date time field CSS removed with ajax filter view

Solution:
Toolset offers the ajax event hook: js_event_wpv_parametric_search_results_updated

Which you can use the add your custom CSS code and try to apply it using the jQuery.

Relevant Documentation:
=> https://toolset.com/documentation/programmer-reference/adding-custom-javascript-code-to-views-that-use-ajax/
=> https://toolset.wiki/article/trigger-js-event-after-ajax-finished/

This support ticket is created 3 years, 7 months ago. 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Puntorosso 3 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#2061835

I have some problem formatting a date/time field with CSS.
The text form labels (minute, seconds) are set to display:none and I have set a width for the date-field.
It looks good but, as soon as I start an Ajax search, the date field expand to full length.
If I refresh the page, maintaining the same URL parameters, it's formatted again

hidden link

What I am doing wrong?

#2062509

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Toolset offers the ajax event hook: js_event_wpv_parametric_search_results_updated

Which you can use the add your custom CSS code and try to apply it using the jQuery.

More info:
=> https://toolset.com/documentation/programmer-reference/adding-custom-javascript-code-to-views-that-use-ajax/
=> hidden link

#2065427

My issue is resolved now. Thank you!