Passing form field as parameter in link or redirect

gotpowr 18 Sep, 2024

I have a form with multiple page groups similar to the basic articles example.

I load data into a table.  If the user clicks the value in the table, it properly sends over the ID to the new page group to link to the row returned.

I also have a button for entering a new row.  That loads the page in the page group properly, however, I want to add an additional parameter based off of a dropdown on the first page/page group.

I tried creating the button as a link instead and passing parameters.  It worked fine for blank or hard coded parameters, but not when I included the data field.

So for example I had the parameters:

CF_ID = <left blank>

MEMBERNAME = Bob Smith

On the debug of the form link submission I would see BOTH parameters

On my 2nd page group, I could reference and see that <data:cf_id> was indeed blank and <data:membername> did indeed = "Bob Smith"

However, when I did the following:

CF_ID = <left blank>

MEMBERNAME = {data:memberdropdwn}

On the debug of the form link submission MEMBERNAME no longer appeared and I would ONLY see:

CF_ID = <left blank>

On my 2nd page group if I tried to reference <data:MEMBERNAME>, it would come up <blank>

I tried re-creating the button as a "submit", however, I did NOT see either variable in the debug of the form submission and both came up blank when trying to reference them (I tried <data:MEMBERNAME>, <data:page.MEMBERNAME>, <data:pagegroup.page.MEMBERNAME>

Is there a way to get this to work based on the page group setup?  

gotpowr 04 Oct, 2024

Max, any input here?

Max_admin 07 Oct, 2024

{data:memberdropdwn} will return a value passed to the form in the url or posted from a previous page, do you have a value passed in either way ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
gotpowr 07 Oct, 2024

Hi Max,

I figured out the issue with the submit.  I BELIEVE i can get that working submitting from 1 page to another.

However, I can't seem to get it to work with the LINK option.  When I use MEMBERNAME {data:memberdropdown}, I don't even see the MEMBERNAME parameter being passed.  When I remove the {data:memberdropdown} so the MEMBERNAME is blank, I see a MEMBERNAME parameter with nothing in it.

with {data:member} (member dropdown name)

Passing form field as parameter in link or redirect image 1

Without anything entered:

Passing form field as parameter in link or redirect image 2

Form (with data field entered):

Passing form field as parameter in link or redirect image 3

You need to login to be able to post a reply.