8 users online. Create an account or sign in to join them.Users
Poputelate a form controls form with url vars
This is an open discussion with 7 replies, filed under General.
Search
Woah, that’s one scary avatar!
Are you trying to populate the values on postback, i.e. when the event validation fails and page reloads? This was the sole reason for writing my Form Controls utility.
Can you be a bit more specific?
haha thanks.
I’m sending the vars from a form on one page to a bigger form on another and I want to populate the values already entered.
I’m sending the vars from a form on one page to a bigger form on another and I want to populate the values already entered.
Via POST or GET?
Either Ive been trying with get
If GET then append ?debug and look at your Params list. You should have a new parameter for each GET parameter.
So if you have first-name=Nick&last-name=Dunn then you’ll see two new params: $url-first-name and $url-last-name. You can grab these with XSLT to pop them into your form.
ahhhhh so simple.
if anyone else does this create a blank variable at the top of your template so if there is no url variable it wont error.
<xsl:variable name="url-first-name" />
<xsl:variable name="url-last-name" />
Allen: Edited this comment to include quotes around the @name value.
Create an account or sign in to comment.
Hi,
Having problems populating a form with get/post vars while using form controls.
has anyone done this?
Jeff