Skip Navigation

[Resolved] pre-select views filter radio button not filters data

This support ticket is created 7 years, 2 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 3 replies, has 2 voices.

Last updated by marcB-6 7 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#574008
Screenshot_4.png
Screenshot_5.png

I am trying to pre-select radio button ICISA events and it is adding checked but not filtering results.

$(window).load(function(){
  $('input:radio[name="wpv-wpcf-type-of-event"]').filter('[value="1"]').attr('checked', true).trigger('change');
  //$(".radio-tabbing .radio").find("label").prop('checked', true);
  $(".radio-tabbing .radio").find("label").addClass("current");
});  

Link to a page where the issue can be seen : hidden link

I expected to see : ICISA events (check attached screenshot)

Instead, I got : all events (check attached screenshot)

I have followed link : https://toolset.com/forums/topic/how-to-pre-select-views-filter-radio-button/ and as per its last post I have put my code in content template as well but, It doesn't seems to be working.

Thanks

#574287

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Marc,

Thank you for contacting our support forum.

Would you mind providing me with admin access to the website so that I can have a look at this ?

The private fields will be enabled for your next response.

Thanks,
Shane

#574434

keep this on hold for now

#574537

I have done it using other way