Making my first tries with SuiteCRM 7 and Wordpress.
I made a form for Wordpress and styled it.
I noticed that the description field was not multi line and tried to make it work with a text area field, but it seems like the value is dropped. What am I doing wrong?
It doesn’t seem to work. Has anybody a great idea?
<!-- TODO ???
<script type="text/javascript" src='https://crm.propstat.net/cache/include/javascript/sugar_grp1.js?v=4S6XNGjj9HMU8i83_LlxHw'></script>
--><form id="WebToLeadForm" action="https://crm.propstat.net/index.php?entryPoint=WebToPersonCapture" method="POST" name="WebToLeadForm">
<label style="font-family: sans-serif;">* First Name: </label><br>
<input style="width:100%; height:40px; border: 1px solid black;
border-radius: 5px; background: transparent;" name="first_name" id="first_name" type="text" /><br><br>
<label style="font-family: sans-serif;">* Last Name: <span class="required">*</span></label><br>
<input style="width:100%; height:40px; border: 1px solid black;
border-radius: 5px; background: transparent;" name="last_name" id="last_name" type="text" required="" /><br><br>
<label style="font-family: sans-serif;">* Email Address: </label><br>
<input style="width:100%; height:40px; border: 1px solid black;
border-radius: 5px; background: transparent;" name="email1" id="email1" type="email" /><br><br>
<label style="font-family: sans-serif;">* Your Message: </label><span class="ta_replace"><br>
<textarea style="width:100%; height:40px; border: 1px solid black;
border-radius: 5px; background: transparent;" id="description"/></textarea><br><br>
<label style="font-family: sans-serif;">* Privacy Agreement: </label><span class="ta_replace"><br>
<input type="checkbox" id="consent1" name="consent1" value="consent">
<label for="consent1">I agree to the <a href="https://propstat.org/legal-notice/privacy/">privacy regulation</a> of this website.</label><br><br>
<input class="wp-block-button__link wp-element-button" name="Submit" type="submit" value="Send Message" onclick="submit_form();" />
<input name="campaign_id" id="campaign_id" type="hidden" value="51814e20-61f9-6466-4033-6904b2a371f9" /> <input name="redirect_url" id="redirect_url" type="hidden" value="https://propstat.org/thank-you-for-getting-in-touch/" /> <input name="assigned_user_id" id="assigned_user_id" type="hidden" value="1" /> <input name="moduleDir" id="moduleDir" type="hidden" value="Leads" /></form>
<p>
<script type="text/javascript">// <![CDATA[
function submit_form() {
if (typeof(validateCaptchaAndSubmit) != 'undefined') {
validateCaptchaAndSubmit();
} else {
check_webtolead_fields();
//document.WebToLeadForm.submit();
}
}
function check_webtolead_fields() {
if (document.getElementById('bool_id') != null) {
var reqs = document.getElementById('bool_id').value;
bools = reqs.substring(0, reqs.lastIndexOf(';'));
var bool_fields = new Array();
var bool_fields = bools.split(';');
nbr_fields = bool_fields.length;
for (var i = 0; i < nbr_fields; i++) {
if (document.getElementById(bool_fields[i]).value == 'on') {
document.getElementById(bool_fields[i]).value = 1;
} else {
document.getElementById(bool_fields[i]).value = 0;
}
}
}
}
// ]]></script>
</p>