URL Variable in a Form

mabdelhady

New Member
Hello,

I'm passing variable from one form to another so I added it in the redirect jump address but then trying to insert in in the following form in a hidden field (element) and don't know what would be the syntax of getting this URL variable into that hidden field.

My redirect jump address is:

index.php?option=com_fabrik&view=form&formid=11&alumniID={rowid}

Thanks,

Mona
 
Use
index.php?option=com_fabrik&view=form&formid=11&your-full-elementname={rowid}

your-full-elementname = something like your-table___alumniID
 
Thank you for your reply. Where to use this? in the default value of the hidden field? Please see attached image
hiddenField.png
 
You don't need to do anything, your element will be populated automatically.

I'm sorry since I'm using Fabrik form for the first time I'm not sure I understand well. You mean I should rename my hidden element to: my-table___alumniID

where "my-table" is the table I want to copy the id from and "alumniID" is the id column name in that table? no need to use URL variable?

Thanks again for the help
 
I assume your hidden element is in form 11.
Use the full element name of this element (syntax is database-table___column, best is to copy/paste it from the element listing) in your redirect URL.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top