Forums

Initializing field values by URL

holgers 19 Apr, 2011
Hi,

I have a link on different articles pointing directly to a form. I've tried to initialize a single field (name: offering) by adding a parameter to the URL, ie http:// localhost/index.php/component/chronocontact/?chronoformname=my_form&offering=special

But this does not work😟


Is there a chance to do that without editing the form's code? May be there is somewhere a switch to enable this...?
GreyHead 19 Apr, 2011
Hi Holgers,

There isn't a switch to do this. You can edit the form HTML to add a value like this
<input name='offering' id='offering' value='<?php echo JRequest::getString('offering', '', 'get'); ?>' />


Bob
This topic is locked and no more replies can be posted.