• 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: Passing parameters inside the curly braces block

Passing parameters inside the curly braces block 11 years 2 months ago #26472

  • admin36
  • admin36's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
This may be a bit of an unusual request, but it'd be enormously useful to me if I can get this working (somehow).

I have a page with multiple calls to the same form - and each call to the form is inside a slider, in the form:

{slider Make an enquiry|closed}
{emailcloak=off}
{rsform 4}
{/sliders}

... which elegantly displays the form inside the slider.

Is there a way I can pass/catch a parameter to the same form, to differentiate each instance? Something like so:

{slider Make an enquiry|closed}
{emailcloak=off}
{rsform 4|Fred}
{/sliders}

{slider Make an enquiry|closed}
{emailcloak=off}
{rsform 4|Bloggs}
{/sliders}

... or ...

{slider Make an enquiry|closed}
{emailcloak=off}
{parameter=Fred}
{rsform 4}
{/sliders}

{slider Make an enquiry|closed}
{emailcloak=off}
{parameter=Bloggs}
{rsform 4}
{/sliders}

I've successfully passed this parameter via a URL (and caught in in the form) but this opens up a new [Form] page - and I'd like the user to still see the info on the sending page (hence the slider).

Any ideas?

Adam.
The administrator has disabled public write access.

Passing parameters inside the curly braces block 11 years 2 months ago #26475

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
There is no built-in feature for this, if this is what you are looking for. You would have to edit the RSForm!Pro content plugin for such an implementation.

If the above is out of your reach, you could try grabbing the current page URL to differentiate your submissions.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Passing parameters inside the curly braces block 11 years 2 months ago #26478

  • admin36
  • admin36's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
alexp wrote:
There is no built-in feature for this, if this is what you are looking for. You would have to edit the RSForm!Pro content plugin for such an implementation.

If the above is out of your reach, you could try grabbing the current page URL to differentiate your submissions.
Thanks for the quick answer, Alex. I can grab a URL parameter (as I said above) but that means leaving the current page (via that URL) and going to a new [form] page which is what I was hoping to avoid.

I'm generally OK with PHP, but Javascript just addles my brain. Would there be a way of embedding some Javascript in the *sending* page, which the Javascript embedded in the form could then process? Roughly like this:

[initial Javascript block (A) - including the parameter values]
Some HTML ...
[slider] - which streams in the RSFORM ... which includes ...
[RSFORM Javascript block (B) - which processes the values of (A)]
[/slider]

Just to re-iterate - everything happens on the *same page* - the HTML (including the slider) and the form (streamed in dynamically via the {RSFORM xx} block).

Put more simply - can JS in the page communicate with the JS in the form?

Adam.
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!