By CMatters on
I have created a webform (from module webform) that I would like to use to replace the "Personal Contact Form". In other words, when someone clicks on a user's personal contact link, instead of getting the default "Contact Form", I'd like them to get the defined webform. Any ideas?
Thanks!
Comments
Have you figured it out?
Have you figured it out?
Hi CMatters, you can try this
Hi CMatters,
you can try this :
1- disable the core contact module if enabled.
2- enable path module if not enabled.
3- edit your webform that you created and define contact as alias to the node.
4- Add a menu item that links to contact path.
hope that it works for you
Would you mind elaborating?
Would you mind elaborating? It would really help me.
I don't understand step 3. I know how to edit the webform of course, but you must be referring to using the %get variable?
I'm also not clear how you impliment step 4, but I'm most concerned with step 3 if you have a moment to clarify?
Thanks!
I'd be very interested in
I'd be very interested in elaboration as well.
I really like webform, however it is not clear to me how to use it as a replacement for the core user contact module.
Can anyone elaborate on how I
Can anyone elaborate on how I would get my Webform to act as the personal contact form?
What alias do I give my webform node url?
user/?????/contact
Have you tried
Have you tried user/%uid/contact ?
Certainly tried that, but
Certainly tried that, but thank you for the reply.
The challenge with the suggested solution above is that if I disable the Core Contact module, then no contact form is invoked for users at all.
Lets say on a node, I have this link: user/75/contact
Where user/75 was the node author.
I need that link to lead to the personal contact form which I created using Webform.
Sending a Value to Webform
I think what might work for you is what I am planning to do. I am going to just add a little PHP that appends the user ID or username to the URL like I did in this case with the product name https://www.alphabetworkout.com/forms/request-product-information?produc...
I have a field called Product in my webform and then I have "%get[product]" (without the quotes) as the default value.
The code to generate the link is the node TPL file.
Hope this helps.
Steve Kessler