Add field value as url parameter in detail page
Permalink Browser Info Environment
I wonder if it's possible to add a dynamic url parameter to a link in a detail page. The url parameter should come from a field value. So I would be able to grab that url parameter in another form. Or is there an easier way to link two forms in the sense that I could have a form-entry filled out with a value based form where the user comes from (a specific detail page form the other form/data-display-database).
Type: | Discussion |
---|---|
Status: | New |
Guess I found the solution meanwhile. With the placeholder attribute it is possible to use a field info in double curly braces {{...}} and like that construct a link with dynamic url parameters in valid html/xml.
Can you show an example of how you accomplished this? I'm trying to figure the same thing out, but I'm not sure how to store the parameter in the subsequent form. I need to store the asID as a foreign ID in the subsequent form.
Thanks!
Thanks!
So far I have this:
I'm 100% certain this url is not correct because the Record ID isn't showing up in the URL, but I'm slowly figuring it out.
I'm trying to pass the Record ID to another form page and store that Record ID as a foreign ID in that form.
<field name="Record ID" placeholder="FID" /> <a href="http://mysite.com/form-page/{{FID}}">Leave a message</a>
I'm 100% certain this url is not correct because the Record ID isn't showing up in the URL, but I'm slowly figuring it out.
I'm trying to pass the Record ID to another form page and store that Record ID as a foreign ID in that form.
Try this:
<recordid placeholder="recordid" /> <a href="http://www.example.com?rID={{recordid}}">Link</a>
That worked. I knew I was close!
Now I just have to sort a list based on that value.
Thanks!
Now I just have to sort a list based on that value.
Thanks!
One more question, jgarcia...
In the form to add a list to a page, you can choose to filter the results. I can put a value in there and filter, but will that field accept html? I need it to filter dynamically based on the URL parameter.
In the form to add a list to a page, you can choose to filter the results. I can put a value in there and filter, but will that field accept html? I need it to filter dynamically based on the URL parameter.
No it will not accept HTML. It will only filter a static value.
The functionality of the Display Single Record block is what I'm going for, but I need it to display multiple records.
I'm going to keep chopping away at it and see what I can come up with.
Thanks!
I'm going to keep chopping away at it and see what I can come up with.
Thanks!
I'm going to try to use the Simple PHP Block to create my link to the form to see if I can pass the dd_asID to the form page and store it in the form from there.