• 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: Submit values to next rsform

Submit values to next rsform 11 years 5 months ago #25693

Hi,

i try to submit dropdown-box values from one rsform to a second rsform on the same website.
I tried out several methods but non is working.

1. i tried to change the method post to get like this:

$formLayout = str_replace('post','get',$formLayout); ----this is working i get a link like this now

form[tag][]=Option+2&....

2. now i try to to insert the tag-value like this in the next rsform

//<code>
$myparameter_value = JRequest::getVar('tag');
return $myparameter_value;
//</code>

but nothing will show up. Why?

the only working method is like this

?tag=3&.... then the value will show up.

is there no $POST solution for this? Do i have to use the GET method?

BR

Markus
The administrator has disabled public write access.

Submit values to next rsform 11 years 5 months ago #25715

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello,

You can try the following approach presented here:

www.rsjoomla.com/support/documentation/v...-different-form.html

Basically this uses the {global:submissionid} placeholder, which returns the ID of that particular submission from your first form. Afterwards a script(as you can see in the above article) is used to change the placeholders of your first form that are actually used within the second form. A more detailed explanation is provided above.
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.

Submit values to next rsform 11 years 5 months ago #25723

$formLayout = str_replace('[','',$formLayout);
$formLayout = str_replace(']','',$formLayout);

this did the job :-) so i got no [] in the generated link (Scripts -> PHP Scripts ( $formLayout))

and called the value with this (dropdown menu!) on the next form

//<code>

$options = array('Dezember', 'Jänner', 'Februar', 'März', 'April');

$selected_option = JRequest::getVar('formmonat');

$items = "|
\n";

foreach ($options as $options_item) {
$items .= $options_item."|".$options_item;

if ($options_item == $selected_option) {
$items .= "[c]\n";
} else {
$items .= "\n";
}
}

return trim($items);
//</code>


Markus
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!