For a property listing, once the user is viewing a property they'd like to rent (ie. a single node), is it possible that they could then fill out a quick form to reserve it by email, bearing in mind that the reference to the property (either the url or a cck field) should pre-populate a hidden form field and be included in the email, so the recipient admin actually knows which property they are interested in. It isn't acceptable that the user has to copy/paste the url into a form field themselves.
Perhaps this sort of thing requires lots of php scripting, and is out of the scope of a beginner?
Thanks.
Comments
Comment #1
quicksketchIf your links to the Webform are formatted like this: "http://example.com/node/10?property=Name of property", then you can prepopulate a hidden field with the value by using
%get[property]as the default value. Webform just needs a way to be informed of which property they're reserving, so you need to pass in that value from the property page.Comment #2
chianti commentedThanks.
I use clean urls.
So I'd need to create url aliases with something like: /node?property=[nid]
On thing that worries me is that on the php site it says %get is depreciated, or something?
Also, I have no idea how to link to the webform to send the url to the form.
I envisaged that the webform would be on the same page as the property node, so it would
take the node's url automatically rather than having to be sent the information in a link?
FYI, I'm also looking at the 'signup' module as a possible solution; it seems simpler.
The user 'signs up' to a property node that they're interested in and the admin gets emailed.
I think they get a link to the node, and can also flag the node with a message too, like 'not available'.
Comment #3
giorgoskwould this issue be "fixed" ?