hello
Tell us what you are trying to do?
I'm working on frontend building a customer form.
I selected a custom taxonomy like TAGS and now when I add new customer i can choose only one of taxonomy selected. I solved in backend to choose only one value of taxonomy with plugin that permit to choose only one selection of taxonomy.
It works fine in backend but in frontend form I continue to have
list of taxonomy that acccept selection of all taxonomy.
a [ ]
b [ ]
c [ ]
Is there any documentation that you are following?
I'm trying to use this advise but I haven't any idea how to use attribute " single_select='true' in form https://toolset.com/forums/topic/how-do-i-make-a-taxonomy-a-single-only-selection/
I see online it's possible with few code of javascript but do you have an example how to add JS onclick function on cred form?
I need custom when click on checkboxes A, deselect other B - C boxes.
Can you give me some example?
What is the link to your site?
I'm working offline on a project
Thank you
Best regards
Hi thanks for your reply, I understand about single attribute.
I need to use checkboxes and I find this way that work fine on checkboxes type : field
jQuery( document ).ready(function() {
jQuery('.wpt-form-set-checkboxes-wpcf-templ input[type=checkbox]').click(function(){
jQuery('.wpt-form-set-checkboxes-wpcf-templ input[type=checkbox]').not(this).prop('checked', false);
});
});
but when I try to use on list of checkboxes taxonomy, it doesn't work
Do you have the correct code to use with taxonomy hierarchical?
Do you mean you want users to select only one checkbox option from the list of checkboxes option? if yes,
Can you please share problem URL where I can see the checkboxes field and 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.