<div class="customise-form">

 <p class="sec-cont3">Share Your Requirements To Discuss </p>
       
</div>
<script type="text/javascript">
    /** This section is only needed once per page if manually copying **/
    if (typeof MauticSDKLoaded == 'undefined') {
        var MauticSDKLoaded = true;
        var head            = document.getElementsByTagName('head')[0];
        var script          = document.createElement('script');
        script.type         = 'text/javascript';
        script.src          = 'https://sas.emuaj.in/media/js/mautic-form.js';
        script.onload       = function() {
            MauticSDK.onLoad();
        };
        head.appendChild(script);
        var MauticDomain = 'https://sas.emuaj.in';
        var MauticLang   = {
            'submittingMessage': "Please wait..."
        }
    }
</script>

 <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="<?php echo SITE_WS_PATH; ?>/js/jquery1.9.1.min.js" ></script>  
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="https://apis.google.com/js/api.js"></script>
<style>
  .mauticform-button-wrapper .mauticform-button {
    width: 100% !important

    }
    @media(max-width:470px){
   .mauticform-button-wrapper .mauticform-button {
        width:100% !important;
        font-size:14px !important;
       

    }
    }
</style>
<!--<script type="text/javascript" src="https://myemuaj.com/form/generate.js?id=28"></script>-->
<div id="mauticform_wrapper_knowmoremetal" class="mauticform_wrapper">
    <form autocomplete="false" role="form" method="post" action="https://sas.emuaj.in/form/submit?formId=245" id="mauticform_knowmoremetal" data-mautic-form="knowmoremetal" enctype="multipart/form-data">
        <div class="mauticform-error" id="mauticform_knowmoremetal_error"></div>
        <div class="mauticform-message" id="mauticform_knowmoremetal_message"></div>
        <div class="mauticform-innerform">

            
          <div class="mauticform-page-wrapper mauticform-page-1" data-mautic-form-page="1">

            <div id="mauticform_knowmoremetal_f_name" data-validate="f_name" data-validation-type="text" class="mauticform-row mauticform-text mauticform-field-1 mauticform-required">
                <input id="mauticform_input_knowmoremetal_f_name" name="mauticform[f_name]" value="" placeholder="Name" class="mauticform-input" type="text">
                <span class="mauticform-errormsg" style="display: none;">This is required</span>
            </div>

            <div id="mauticform_knowmoremetal_phone" data-validate="phone" data-validation-type="text" class="mauticform-row mauticform-text mauticform-field-2 mauticform-required">
                <input id="mauticform_input_knowmoremetal_phone" name="mauticform[phone]" value="" placeholder="Phone" class="mauticform-input" type="text">
                <span class="mauticform-errormsg" style="display: none;">This is required</span>
            </div>

            <div id="mauticform_knowmoremetal_email" data-validate="email" data-validation-type="email" class="mauticform-row mauticform-email mauticform-field-3 mauticform-required">
                <input id="mauticform_input_knowmoremetal_email" name="mauticform[email]" value="" placeholder="Email" class="mauticform-input" type="email">
                <span class="mauticform-errormsg" style="display: none;">This is required</span>
            </div>

            <div id="mauticform_knowmoremetal_f_message" data-validate="f_message" data-validation-type="textarea" class="mauticform-row mauticform-text mauticform-field-4 mauticform-required">
                <textarea id="mauticform_input_knowmoremetal_f_message" name="mauticform[f_message]" placeholder="Requirement" class="mauticform-textarea"></textarea>
                <span class="mauticform-errormsg" style="display: none;">This is required</span>
            </div>

                <input id="mauticform_input_knowmoremetal_lead_source" name="mauticform[lead_source]" value="https://www.metalstamping-dies.com" class="mauticform-hidden" type="hidden">
            <div id="mauticform_knowmoremetal_yes_i_am_interested_to_di" class="mauticform-row mauticform-button-wrapper mauticform-field-6">
                <button type="submit" name="mauticform[yes_i_am_interested_to_di]" id="mauticform_input_knowmoremetal_yes_i_am_interested_to_di" value="" 
                style="line-height: 1.5;background-color:#11418a;border: none; color: white; text-align:
 center;text-decoration: none; font-size: 16px;margin: 4px 2px; cursor: pointer;word-wrap: break-word;" class=" mauticform-button">Let's set up a Zoom Meeting</button>
            </div>
            </div>
        </div>

        <input type="hidden" name="mauticform[formId]" id="mauticform_knowmoremetal_id" value="245">
        <input type="hidden" name="mauticform[return]" id="mauticform_knowmoremetal_return" value="">
        <input type="hidden" name="mauticform[formName]" id="mauticform_knowmoremetal_name" value="knowmoremetal">

        </form>
</div>


<script>
    var url = window.location.href; 
    /*$(document).ready(function(){
          $('#mauticform_input_rubberformws_lead_source').append("<option value='"+url+" + Whole Sale' selected> Whole Sale</option>");
    }); */
   
      $(document).ready(function(){
          $('#mauticform_input_knowmoremetal_yes_i_am_interested_to_di').click(function(){
             knowmore();
			 
          });
      });  
</script>

<script>
function knowmore()
    {   var url = window.location.href.split('#')[0]; 
        var field1 = $("#mauticform_input_knowmoremetal_f_name").val();
        var field2 = $("#mauticform_input_knowmoremetal_phone").val();
        var field3 = $("#mauticform_input_knowmoremetal_email").val();
        var field4 = $("#mauticform_input_knowmoremetal_f_message").val();
		//var field5 = $("#mauticform_input_contactform_lead_source").val();
		var field5 =url + ' + Know More';
	
       		       // Validate fields
   if (!field1 || !field2) {
        // Show error message if any field is empty
        alert("Please Fill Required Fields");
        return false;  // Prevent form submission
    }
else{
               
        $.ajax({
        
//url: "https://docs.google.com/forms/d/e/1FAIpQLSfUIcDKgfX1mqeSWE3JuLo1ShsIORzKUFvbTayHX0eA8Qh0Ug/formResponse",
//data: {"entry.1737396118": field1, "entry.760033871": field2, "entry.1542924317": field3, "entry.2105357548": field4,"entry.1053271339": field5},
    
url: "https://docs.google.com/forms/u/0/d/e/1FAIpQLSdP-DZd5DGZM38TZtUKrFRBuh5vDmVsXZAudx51wtLlNXI-5g/formResponse",
data: {"entry.1251720729": field1, "entry.746654238": field2, "entry.574360142": field3, "entry.634609468": field4, "entry.1533748469": field5},

            type: "POST",
            dataType: "xml",
            success: function(d)
            {
            },
            error: function(x, y, z)
                {
                    $('#success-msg').show();
                    $('#formfield').hide();
                }
          });
        }
        
    }

</script>

   
