Skip Navigation

[Resolved] Term Taxonomy select in Cred form

This support ticket is created 6 years, 11 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by christopheV-2 6 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#602084

Hello,

I have a select taxonomy term in cred form :
[cred_field field="sport-tournoi" display="select" single_select="true"]

I would like if I choose second option with id="15" have several input.

Thanks

#602113

Dear Christophe,

What kind of "several input" do you need? if you need to trigger some custom JS function, you will need to setup for it, for example, edit your CRED form, click button "JS editor", add below codes:

jQuery(document).ready(function($){
	$('select[name="sport-tournoi[]"]').on('change', function(event){
    	var v = $(this).val();
        if(v == 15){
        	alert('this is the second option');
        }
    });
});

More help:
hidden link

#602909

It's OK Thanks