Page 1 of 1

Is it possible to pass the JobName to Formbuilder?

Posted: Mon Jan 04, 2010 12:23 pm
by Shortcheese
Hi all,

I'm using CMSMS 1.6.6. and I am very satisfied with it.
In my current website project I use the Jobs (Job listing) module.
Now I would like to pass the JobName as a parameter to the application form (FormBuilder).

Is it possible to pass the JobName to Formbuilder? And if so, can someone tell me how I can do this?

Thanks in advance!

Regards,
Dennis

Re: Is it possible to pass the JobName to Formbuilder?

Posted: Mon Jan 04, 2010 1:43 pm
by Peciura
You can pass value over url (/index.php?jobname=actual_job_name) and access it in smarty enabled field

Code: Select all

{$smarty.get.jobname}
or

Code: Select all

{cms_module module='FormBuilder' form='my_form' value_FIELDNAME=$smarty.get.jobname}
also

Code: Select all

{cms_module module='FormBuilder' form='my_form' value_fldNUMBER=$smarty.get.jobname}

Re: Is it possible to pass the JobName to Formbuilder?

Posted: Mon Jan 04, 2010 11:11 pm
by Shortcheese
Thanks a lot Peciura.

It works great.  :D
Problem solved.

Re: Is it possible to pass the JobName to Formbuilder?

Posted: Wed Jan 06, 2010 8:25 pm
by Loopy
Hi Shortcheese I'm trying to do the same thing but I just don't get it. Can you provide more info on how this is done.

Thanks.