Problem:
...
I have a product that is being auto-added to customer profile upon signup. This product have form elements , that I wish to initialise initialize from HTML form (either external , or internal, located in includes/modules/Other/cloudsignup/template )
Solution:
...
1. Locate variable names of your custom forms in product you wish to add, go to Settings → Products & Services → /Orderpage/ → /Product/ → Components → Forms → /Edit/
Variable name can be found/set under Advanced tab
\
2. In your cloud signup Cloud Signup HTML form , add input fields fields:
Code Block | ||
---|---|---|
| ||
<form action="http://URL.TO.YOUR.HOSTBILL/?cmd=cloudsignup" method="post"> <!-- your cloud signup form here --> <input type="hidden" name="customforms[test1]" value="value_to_pass_to_field" /> <input type="hidden" name="customforms[datefield]" value="04/21/2017" /> <input type="hidden" name="customforms[qtyfield]" value="1" /> </form> |
Replace: http://URL.TO.YOUR.HOSTBILL/ in code above with actual address of your HostBill installation