Skip Navigation

[Closed] Setting a URL parameter to automatically set Taxonomy

This support ticket is created 4 years, 5 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by Shane 4 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#1667257

I have Parent post, with a link to the child post.

I have the following link

<a href='/add-stock-to-your-park/?my_country=[wpv-post-taxonomy type="country" format="name"]&my_id=[wpv-post-id]&my_address=[types field='park-location'][/types]'>Click to add stock</a>

This link outputs

/add-stock-to-your-park/?my_country=England, Kent, United Kingdom

I would like the taxonomies on my child post to update dynamically, I found this;

https://toolset.com/forums/topic/can-i-pass-a-taxonomy-term-to-a-cred-form-via-a-url-parameter/

But it didn't work for me, I edited the 'subject' parts in the JS code, however, the terms were not selected after being re-directed to the form.

Any guidance on how to do this would be amazing.

Thank you in advance.

#1667481

Shane
Supporter

Languages: English (English )

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

Hi Hayley,

Given that custom code is required to achieve this it would be out of the scope of our support forum. Even if it was written by another supporter or in another thread.

However this may be a simple fix. Can you send me a link to the page where the form is so that I can have a look ?

Thanks,
Shane

#1668009

Absolutely, any chance you could make the next reply private, please?

#1668387

Shane
Supporter

Languages: English (English )

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

Hi Hayley,

Here are the private fields

#1669885

Shane
Supporter

Languages: English (English )

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

Hi Hayley,

I'm not seeing where you've sent the link to the page where you have the form setup. Please let me know the link.

Also yes you are correct. The delete option only appears on the Many to Many relationships because it has its own dedicated relationship form.

Thanks,
Shane

#1669969

Sorry Shane, I forgot to give you that,

hidden link

I've assigned this to you as your park.
If you go there and then click on the "Click to add stock" link, you can see I've passed the already selected taxonomies through the urlparam='my_country'

#1670107

Shane
Supporter

Languages: English (English )

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

Hi Hayley,

Thank you for the link though I have some bad news.

After inspecting your form and the code and reading through the thread where you got this code, I found that this only applies for select fields.

Even when I converted the field to a select field i'm it still doesn't work and modifying this code to match still doesn't work.

What is needed here is a complete custom code that will apply specifically for checkboxes. Unfortunately the work to do this would be out of the scope of our support forum.

Thanks,
Shane

The topic ‘[Closed] Setting a URL parameter to automatically set Taxonomy’ is closed to new replies.