Hi,
Would like to call my eform like
http://www.domain.tld/forms/send-to-freind?id=9
I would like to check in my eform if the $id is provided and then extract the pagetitle of the document and make the URL of the document and save them as hidden fileds ...
<input type="hidden" name="pagetitle" value="The hero" />
<input type="hidden" name="URL" value="http://www.domain.tld/documents/the-hero" />
if no $id is provided (i.e. the eform is called directly and not through a link OR someone tried to extract no existent document ids) then use default content for the hidden fields...
<input type="hidden" name="pagetitle" value="Domain Name" />
<input type="hidden" name="URL" value="http://www.domain.tld/" />
How can I achieve the above... I tried snippet calls within the form template... no use...