Confirmation Email
-
Hi there,
Firstly, may I thank you for all of the great support you offer on this plugin, you are second to none.
I was wondering if there is a way of sending information on the confirmation email to only one of the possible selected email addresses in the “Send Copy to User” section.
For example, we have a form that sends a confirmation email to two email addresses selected in the “Send Copy to User” section.
Currently, we can only send the same confirmation email to all of the email addresses selected in this section.
Is there a function or field that can be used to show extra information to one of these email addresses, but not to all selected?
Many thanks,
F
-
Hello @fabbstar,
I’m sorry, that’s not possible in the current version of the plugin.
There are available two sections for emails. For sending notification emails to the email addresses entered through the “Destination email” attribute, and the second section for sending a copy to the user, but the plugin send the same email’s content to all email addresses in each section.
A different behavior will require customize your copy of the plugin to include an additional section.
Best regards.
“Firstly, may I thank you for all of the great support you offer on this plugin, you are second to none.”
Except for my 8-day old chopped liver. Do you have to buy the plugin to get an answer? I kind of need a couple answers before I give them my money. Otherwise I’ll probably just go with Gravity Forms.
-
This reply was modified 6 years, 8 months ago by
phixate.
Hello @phixate,
I’m sorry, could you repeat the questions or doubts I’ve not answered, please?
Best regards.
Thanks @codepeople! Can I pass the value of a calculated field from one form to another on the same page/step without a page refresh? I need this to calculate two different prices, a “buy it now” price and a “rent to own” price. They need to be on two separate forms because I’m creating 24 products that all use the same rent to own form.
Hello @phixate,
If there are multiple forms on your page, and you want assign the value entered or calculated in one of forms to fields in the other forms, you should assign an onchange event to the source field to populate the other fields. I’ll try to describe the process with an example. Assuming you want to copy the value of the fieldname3 in the first form into the fieldname9 in the second form.
1. Assign an unique class name to the fieldname3 in the first form, for example: source-field
2. Assign an unique class name to the fieldname9 in the second form, for example: destination-field
Note that the class names are assigned to the fields through the attribute: “Add CSS Layout Keywords” on their settings.
3. Insert a “HTML Content” field in the second form with the following piece of code as its content:
<script> jQuery(document).on('change', '.source-field input', function(){ jQuery('.destination-field input').val(this.value).change(); }); </script>
and that’s all.
That’s great, thanks! I put that in a calculated field instead of an HTML Content field so I could use the value for other calculations in the second form and it works. The only problem is that it doesn’t set the initial value right away. I have to change something in the first form for it to fill in the value in the second form.
Here is the form I’m working on:
https://whittsroofing.com/gazebos/index.php/53-2/
Retail Price 2 is the field where the value from Total Retail should be showing. Thank you so much for your help!-
This reply was modified 6 years, 8 months ago by
phixate.
I tried several things that aren’t working:
var formValue = document.querySelector('.retail-price').value; document.querySelector('.retail-price2').value = formValue;
//get the input elements from HTML DOM var retailprice = document.getElementById("retail-price"); var retailprice2 = document.getElementById("retail-price2"); //Get the value of textOne textbox input var retailpricevalue = retailprice.value; var retailprice2value = retailpricevalue; //Assign the value of textOne textbox to textTwo textbox retailprice2.value = retailprice2value;
I don’t know jquery so I’m just taking snippets I found online and trying them out.
Hello @phixate,
It is important you follow my instructions, and enter the code into the controls recommended.
If you want copy the value of field with the class name: “retail-price” into the field with the class name: “retail-price2”
– Insert a “HTML Content” field in the second form with the following piece of code as its content:
<script> jQuery(document).on('change', '.retail-price input', function(){ jQuery('.retail-price2 input').val(this.value).change(); }); </script>
and that’s all.
Best regards.I apologize I didn’t mention I tried that but it produced no results. I tried it again and still it shows nothing. Could this be because the second HTML Content field is not an input? Also, can you use the value of an HTML Content field in calculations?
Hello @phixate,
Please, follow my instructions below:
1. Remove the class name: retail-price2 from the “HTML Content” field (from the “Add CSS Layout Keywords” attribute).
2. Replace the code into the the content of the “HTML Content” field, with the following piece of code:
<script> jQuery(document).on('change', '.retail-price input', function(){ jQuery('.retail-price2').html(this.value); }); </script> <span class="retail-price2"></span>
and that’s all.
Best regards.Thanks. That works just like the calculated field. It doesn’t show any value until the retail price field in form 1 is changed. I need it set right when the forms load.
Hello @phixate,
The code is working fine, when the value of the field with the class name: “retail-price” varies, the span tag with the class “retail-price2” is populated with the corresponding value. However, if you want initialize “retail-price2” with the value of “retail-price” (not only in the onchange event), the piece of code would be:
<span class="retail-price2"></span> <script> jQuery(document).on('change', '.retail-price input', function(){ jQuery('.retail-price2').html(this.value); }); jQuery('.retail-price input').change(); </script>
and that’s all.
Best regards.That’s great and thank you for your help but can I use the HTML content field to calculate the field value in the “Full contract price” field? That is the goal of pulling over. That’s why I was trying to use a Calculated Field instead. The code you gave me works but I wasn’t able to pull a value from it like I can a calculated field. I tried this on a calculated field but it didn’t work:
jQuery(document).on('change', '.retail-price input', function(){ jQuery('.retail-price2 input').val(this.value).change(); }); jQuery('.retail-price input').change();
Here is the code I am using on the Full Contract Price field (fieldname17 is the HTML content field you told me to create):
(function(){ if(fieldname3 == 12) return prec(fieldname17*1.4,2); if(fieldname3 == 24 ) return prec(fieldname17*1.6,2); if(fieldname3 == 36) return prec(fieldname17*1.8,2); })();
Again, thank you very much for your help!
Hello @codepeople,
I responded to this questions some tickets ago, I’ve described how to display the value into a “HTML Content” field because you have requested this specific case.
The solution would be:
– First, insert a hidden field into the second form with the class name: retail-price2 (I’ll assume this field is the fieldname123)
– Second, replace the code into the “HTML Content” field with the following one:
<script> jQuery(document).on('change', '.retail-price input', function(){ jQuery('.retail-price2').val(this.value).change(); }); jQuery('.retail-price input').change(); </script>
– Third and final, use the new hidden field in the equation associated to the calculated field in the second form:
(function(){ if(fieldname3 == 12) return prec(fieldname123*1.4,2); if(fieldname3 == 24 ) return prec(fieldname123*1.6,2); if(fieldname3 == 36) return prec(fieldname123*1.8,2); })();
Note that the field’s name is hypothetical, only to describe the process, you should use the corresponding one into your form.
Best regards.
That’s great! Thanks!! I finally got what you were saying about using the HTML content field to change the fields based on the CSS class. It works wonderfully. Thank you for going above and beyond to help me with this. If I can get it all working I want to buy your platinum version to use with WooCommerce.
Could I ask one more question? If you have a moment that would be awesome.
On the second form I’m trying to get the Contract Price field to update when the retail price 2 field changes. It works fine initially on page load but when I change something in the first form it doesn’t recalculate. I tried this code on another HTML content field inserted right after the Contract Price field but it is just changing the price to the retail-price2 value, not recalculating it to what the Contract Price field code has in it (step 3 above).
<script> jQuery(document).on('change', '.retail-price2 input', function(){ jQuery('.contract-price input').val(this.value).change(); }); </script>
I tried inserting that function inside the val(), the change() and even tried replacing the whole function but I couldn’t get it to work. I think I don’t really understand the language enough. Perhaps I need to take a class ??
Just so you know when I get this part done I’d be happy to give you some money for your time. I really appreciate your help. I do see that you offer this type of service for a fee:
https://cff.dwbooster.com/customization-
This reply was modified 6 years, 8 months ago by
phixate.
-
This reply was modified 6 years, 8 months ago by
- The topic ‘Confirmation Email’ is closed to new replies.