URL containing the form in CGBetterForms

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
stefansnk
New Member
New Member
Posts: 2
Joined: Mon Feb 10, 2020 4:14 pm

URL containing the form in CGBetterForms

Post 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
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1825
Joined: Wed Feb 25, 2009 4:25 am

Re: URL containing the form in CGBetterForms

Post by DIGI3 »

You could use $smarty.server.REQUEST_URI, {get_current_url} (requires CGExtensions), or cgsimple::self_url() (requires CGSimpleSmarty)
Not getting the answer you need? CMSMS support options
stefansnk
New Member
New Member
Posts: 2
Joined: Mon Feb 10, 2020 4:14 pm

Re: URL containing the form in CGBetterForms

Post by stefansnk »

Ok, i have just tested with {get_current_url} directly in Handlers, email body template, and it worked.

Thank you
Post Reply

Return to “Modules/Add-Ons”