The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group
Same form, Different defaults on different pages?
Hi guys,
Formidable is working out great so far. I'm hoping to have a common form across multiple pages, but have certain defaults change depending upon what page it's accessed from.
Ideally it would be something that allowed me to say eg. [defaultLocation: /defaults/$thispage/default1.txt] rather than parsing the values to the via the location bar.
Does anyone have any ideas how one might approach this?
Thanks
Lachlan
April 4, 2017 at 10:35 pm
So far I've added this to my code snippets :
And in the default on the form I add [frm_get_default_value]
This works, however it would be great to be able to call this like:
[frm_get_default_value defaultCategory="category 5"]
then instead of "if $field->id" it was "if defaultCategory = "category 5"
is this possible?
I also notice that if you use this method for HTML it overwrites all HTML and puts it outside of the form div. (so can't be hidden conditionally) Should I be using a different method for HTML?
Thanks
Discussion closed.