Page 1 of 1

URL containing the form in CGBetterForms

Posted: Mon Feb 10, 2020 4:40 pm
by stefansnk
Hello,
I used in FormBuilder a variable named {$sub_url} for submitting the url of the page where the form was located.
{$sub_url} URL of page containing form
I can't find a way to replicate this variable in the CGBetterForms or I can't find it.
Can anyone give me a hint for a workaround or a solution for this?
Thank you

Re: URL containing the form in CGBetterForms

Posted: Mon Feb 10, 2020 5:00 pm
by DIGI3
You could use $smarty.server.REQUEST_URI, {get_current_url} (requires CGExtensions), or cgsimple::self_url() (requires CGSimpleSmarty)

Re: URL containing the form in CGBetterForms

Posted: Mon Feb 10, 2020 5:07 pm
by stefansnk
Ok, i have just tested with {get_current_url} directly in Handlers, email body template, and it worked.

Thank you