Posting form values to auto-added product through Cloud Signup
Problem:
I have a product that is being auto-added to customer profile upon signup. This product have form elements that I wish to 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 HTML form add input fields:
<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