View previous topic :: View next topic |
Author |
Message |
puddlez
Joined: 18 Feb 2010 Posts: 9
|
Posted: Sat Mar 03, 2012 1:51 pm Post subject: Subject Line from URL |
|
|
Not sure if this is an option, but I have a client asking... Is there any way to customize the subject line of the form such that the subject line is captured based on the url of the page?
Example:
1. Visitor goes to amazon.com
2. Visitor views product x: amazon.com/x
3. Visitor clicks a request info button that loads your form (set up like this now)
4. The form prepopulates the subject line to say: product x
If adding that sort of script to the fixed subject option would break how the form is intended to work, are you (or anyone else here) open to throwing a quote for a customization? This client has a ton of products and will only actually sell a handful. The rest are quote based. Their cart was customized to address that, but other within cart php alternative form attempts did not work so well. This one is very consistent. Due to the large quantity of quote requests they just need this piece for easier management.
Thanks!! |
|
Back to top |
|
|
mycontac Site Admin
Joined: 31 Dec 2003 Posts: 2860
|
Posted: Sat Mar 03, 2012 2:15 pm Post subject: Reply |
|
|
If you set up the form with a fixed subject, you will see the following:
Code: |
<input name="subject" type="hidden" id="subject" value="Web Feedback" /> |
You can use Javascript or a server side script (like PHP, ASP, etc.) to pre-populate the value="" portion of the above code based off of the URL of the page. This would be fairly easy, but would depend on what technology is available for your use.
Nick Ladd
myContactForm.com |
|
Back to top |
|
|
puddlez
Joined: 18 Feb 2010 Posts: 9
|
Posted: Sat Mar 03, 2012 2:37 pm Post subject: You Rock |
|
|
Thank You!! |
|
Back to top |
|
|
puddlez
Joined: 18 Feb 2010 Posts: 9
|
Posted: Wed Mar 07, 2012 6:41 pm Post subject: |
|
|
Hi Nick,
I used the value of the subject to test quite a few really simple javascripts like this one:
Code: |
<script type="text/javascript">
<!--
document.write("This page is located at: "+document.URL);
// -->
</script>
Once uploaded, the form displays as expected, the url displays with no errors, but the subject gets stripped. I should have expected that because of email clients.
I tried a few different approaches using a text field in the form itself as well. No dice. What are the odds that the folks there will allow these kinds of customizations to be done even if there is an extra fee or an approval process for security purposes?
Thanks
Julie |
|
|
Back to top |
|
|
mycontac Site Admin
Joined: 31 Dec 2003 Posts: 2860
|
Posted: Thu Mar 08, 2012 5:58 am Post subject: |
|
|
puddlez wrote: |
Hi Nick,
I used the value of the subject to test quite a few really simple javascripts like this one:
Code: |
<script type="text/javascript">
<!--
document.write("This page is located at: "+document.URL);
// -->
</script>
Once uploaded, the form displays as expected, the url displays with no errors, but the subject gets stripped. I should have expected that because of email clients.
I tried a few different approaches using a text field in the form itself as well. No dice. What are the odds that the folks there will allow these kinds of customizations to be done even if there is an extra fee or an approval process for security purposes?
Thanks
Julie |
|
I am not 100% sure of the Javascript that you are posting. I don't see the part where it is writing the dynamic subject value to the form element that contains the subject value being posted. I am sure it can be done, but it falls outside the scope of our support.
At this point, this isn't something that we'll likely integrate into the broader service.
Nick Ladd
myContactForm.com |
|
Back to top |
|
|
|