• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Dynamic Return URL

Dynamic Return URL 12 years 2 weeks ago #17233

Hi all,

I'm trying to build a string of parameters for the Return URL. The parameters represent 4 fields on my form. I can get the values into the URL (using {field:value} format), but I'm having trouble eliminating its parameter when the field is empty.

Fully Populated Return URL (example):
http://www.externaldomain.com/Listings.aspx?MinBedrooms=2&MaxRent=600&PropertyType=Apartments&Location=90120

Current Return URL Value:
http://www.externaldomain.com/Listings.aspx?MinBedrooms={Beds:value}&MaxRent={Rent:value}&PropertyType={Type:value}&Location={Location:value}

If the 'Rent' field on my form was empty, the Return URL should look like this:
http://www.externaldomain.com/Listings.aspx?MinBedrooms=2&PropertyType=Apartments&Location=90210


Any help is much appreciated!
Last Edit: 12 years 2 weeks ago by justinconn.
The administrator has disabled public write access.

Re: Dynamic Return URL 12 years 4 days ago #17362

Hello,

I don't have a direct solution for you, but maybe i can send you in the right direction with a tip.
I don't know your form configuration and what kind of components you are using.
Maybe you can use the values you need in your components in the form.
Instead you send number 2 for MindBedrooms, you send ?MinBedrooms=2 and you build your URL like this.
www.externaldomain.com/Listings.aspx{Bed...alue}{Location:value}
Regards
Wilco Alsemgeest

Please note: my help is not official customer support. To receive your support, submit a ticket by clicking www.rsjoomla.com/my-support-tickets.html
Last Edit: 12 years 4 days ago by wilco.alsemgeest.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!