Hello,
In order to use Webform Rules, I've updated Webforms to the latest 4.x dev release.
This introduces a new incompatibility in that Webforms 4.x uses tokens and no longer supports %post. %get variables are re-mapped and yet available, http://drupal.org/node/1609324
Is it possible to have Availability Calendars pass data using $_GET rather than $_POST ?
Kind regards,
Adon
* * note: i changed line 583 of availability_calendar_booking_formlet.module: (from POST to GET)
$form['#method'] = 'GET';
I'll see if this solves for my particular case.
Comments
Comment #1
Adon Irani commented* yes.. that one small hack fixes for my situation.
Hopefully this is useful info (if not already known) for the other users of this code.
Blessings and thanks - this is a great module!
Comment #2
fietserwinOuff, there is so much information sent to the webform that the URLs become very ugly, exposing all kinds of implementation details that a user should not be bothered with, even not within the address bar.
But it is clear that something has to be done. I'll look at the options. Thanks for mentioning this upcoming problem.
Comment #3
fietserwinComment #4
fietserwinI made it an option on the field settings. for new fields it will default to GET if webform 7.x-4.x has been installed. When updating existing installations, visit the field settings form and check the option "Use GET".
Comment #5
david.upjohn commentedHi
Aer you able to give step by step details of how you got this working.
Where is the "option Use GET".
I have created a webform and added the textfield component %get[from_display] in the default value field. But the date is not getting pulled across when users click 'book resource'
Comment #6
fietserwinie: download and install latest dev version and visit the field settings form and check the option "Use GET".
Comment #8
michaelschutz commentedJust posting to say that the solution to #5 is here: https://drupal.org/node/1609324
Assuming you've got the latest -dev of this module and have chosen GET, you also have to replace the style of token used in the Webform component. Instead of
%get[from_display]
use
[current-page:query:from_display]
That'll pass the data properly.
Hopefully the issue is now completely fixed.
Comment #9
fietserwinAlso see the latest documentation that ships with this module [2063491].
Comment #9.0
fietserwinnew information
Comment #10
mbrouillet2 commentedHello,
I have updated from a very old setup. I had indeed values like %post[to_display] which needed to be changed into [current-page:query:to_display]. That worked. But... How should I replace my previous settings of %post[entity_owneremail] and %post[entity_label] ?
On my site, each property has its own owner and the email on form-submit should be emailed to the right owner. It is also neat to have in that email the name of the page from which the user entered the form from. The above used to work.
Thanks.
Comment #11
fietserwinDo not send email adresses via the form from one page to another, but keep them on the server and use hooks to alter the to address. Try the code from this comment: https://www.drupal.org/project/webform/issues/800350#comment-4610404. So ensure you send the entity id of the holiday home from the booklet to the booking form and store it in a hidden variable (set it as default value for that hidden field). Then when the bokking form is posted use that hidden field to retrieve the holiday home and from that you can retrieve the owner and its email address.