Skip Navigation

[Resolved] Pass-through fields / field values

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to pass URL param to another link

Solution:
For example, You can use shortcode [wpv-search-term param='colour'] to catch the "colour" URL param value from current URL.

You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/pass-through-fields-field-values/#post-638918

Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-search-term

This support ticket is created 6 years, 8 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 12 replies, has 3 voices.

Last updated by saint 6 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#631783

Tell us what you are trying to do?

Hi, is there a way for Toolset to be able to pass-through variables via URLs (or another mechanism) from one URL to another, and have that information captured and retained to be used further down the line? Please see below:

Is there any documentation that you are following?

No, I am wondering if this is doable. If not, I'd like to put in a feature request since I believe this is extremely important in being able to create a consistent and cohesive Customer Journey experience.

Is there a similar example that we can see?

hidden link ThriveCart And Facebook Friend
hidden link

What is the link to your site?

#631915

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - actually, you can construct the links with URL params which you want to pass - I think Toolset is not needed here.

And to grab the URL param value using [wpv-search-term] shortcode:

More info:
https://toolset.com/documentation/user-guides/views-shortcodes/#vf-214940

#632069

Hi Minesh,

Thank you for that. As someone relatively new to Toolset, are there any video examples, or more in-depth tutorials for these types of features?

I'd love to deploy them, but without adequate guides to help show how it can be done, I'm at a loss with just a reference snippet.

Thanks,

#632478

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

No - there is no such tutorial available for simple things.

For example:

<a href="www.abc.com/?number=1"> Number? </a>
#635055

Hi Minesh,

"And to grab the URL param value using [wpv-search-term] shortcode:

More info:
https://toolset.com/documentation/user-guides/views-shortcodes/#vf-214940"

Yes, this is what I am talking about in terms of tutorials, video guides, etc. Want to understand and see a step-by-step real life example of how this is created and setup.

#638918

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

Minesh is sick but will hopefully be back tomorrow when he will be able to continue with this.

You should be able to chain your linked pages together like so:

// Add this to page 1
<a href="site.com/page-2/?colour=yellow">Link to page 2</a>


// Add this to page 2
<a href="site.com/page-3/?colour=[wpv-search-term param='colour']">Link to page 3</a>


// Add this to page 3
<a href="site.com/page-4/?colour=[wpv-search-term param='colour']">Link to page 4</a>
#641222

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Could you please check examples shared by Nigel and try to resolve your issue.

#684545

Hi guys,

Thanks for the example.

// Add this to page 2
Link to page 3

// Add this to page 3
Link to page 4

So, I get the difference between page 1 to page 2, but what's the main difference between page 2 and page 3?

Also, the above syntax makes sense and I understand how it works, but I'm curious to know - is there a practical video showing off this demo? Would be interested to see a real-case example of how it all plays out.

Thank you!

#691994

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

From page 2 - you are setting the URL param colour=yellow and on page 3 you are fetching the value of URL param "color".

#692021

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Also, there is no such video available to demonstrate this simple thing.

#744719

Hi Minesh,

What I mean is by this: hidden link

Thanks,

#746740

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

There is no different with those two links - we are just passing the value of URL param "color " from page 2 to page 3.

#751633

Hi Minesh,

Ok, I see, thank you for your note. Appreciate your help.