CF7 Local Vars

wbuk 11 Dec, 2022
As we understand it, Local Vars is used to pass a variable to another view/function.

We have set up a form, with 2 submit buttons each with a different local vars. The idea is that depending on which button the user click, a different value will be passed to the next page.

However this doesn't seem to be working, on inspecting both buttons are exactly the same within the HTML code. Is Local Vars not working or are we doing it wrongly? Thanks in advance.
wbuk 12 Dec, 2022
It appears Local Vars is to define a variable to be used within that element itself, and cannot be passed to another view/page.

What is the method to pass a variable to another event/page? Previously in CC6 we could use a Task Button and pass a variable using URL parameter. There's no more Task Button so we're unsure how to replicate that in CF7.
Colnem 12 Dec, 2022
Hi

The method is to use session variables.
You need to login to be able to post a reply.