[Résolu] checked="checked" not updating on my View Radio buttons
This support ticket is created Il y a 3 années et 2 mois. 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.
Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.
I am trying to:
I need to create an active state for my radio buttons, as that has to be done within an after ajax has updated callback I can not use an onclick and have to look for the checked: status of my view radio button.
Link to a page where the issue can be seen: lien caché
user: matternow
pass: matternowdev
I expected to see:
when clicking on a radio button I expect the checked:"checked" attribute be added to the radio button.
Instead, I got:
The checked:"checked" status remains on my first "all" filter and stays there, it is never updated or moved to the other items.
Hello. Thank you for contacting the Toolset support.
When I try to open the link you shared it asks for the authorization access details and the access details you shared is not working.
Can you please share working authorization access details as well as admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Can you please tell me why you will require checked="checked" attribute - do you want to change the button color or you want to apply any additional CSS?
Correct, I need to apply an active style to my button, I have my nothing to hook into with the current markup. Also the checked="checked" is there on the ALL and stays there which seams like a bit buggy.
Hello there! Minesh won't be available for a couple of days. If you don't mind, I'll continue with you on this issue.
It seems that the AJAX response correctly sets checked="checked" for the chosen filter, but it does not update it on the view. I fixed that by changing the custom search settings from "Let me choose individual settings manually" to "AJAX results update when visitors change any filter values" and it fixed the issue. Check this screenshot lien caché
I hope this helps. Let me know if you have any questions.
I don't think it is a bug. But, I could not figure out the whole situation. There was a message that explains that the view is using an OR condition for the filters instead of an AND, and thus the possible filter values won't be generated correctly. Check this screenshot lien caché
I searched for custom code that may be behind changing the AND into an OR, but I did not find any.
Maybe this appears because you have a query filter on post_tags, but there are no corresponding filters in the search form. As long as changing the option fixed the issue, I did not try to remove the post_tags query filter. And I don't think it is relevant, unless there is something I am missing.