• wpforumuser

    (@wordpressforumhelp)


    I may have hit my limit on knowledge on this ??

    I have a wordpress form to integrate with a CRM. When submitted it sends correctly all the data from the form apart from the file attachment. This won’t upload.

    My code is below… The varchar ID’s match the CRM special fields and work fine and so does the re-direct to thank you page.

    Am I missing something here to help upload the attachment, or is it an error and just not talking to the CRM’s backend?

    Many thanks

    <form id="HubForm" action="https://www.CRM-DOMAIN-NAME/Api/FormAdd" method="post">
    
      <input type="hidden" name="ClientId" value="123"><input type="hidden" name="FormTypeId" value="123">
      <input type="hidden" name="redirect" value="https://www.CLIENTS-DOMAIN-NAME.co.uk/applied/">
    
      <input id="firstname" class="emrform" name="firstname" type="text" placeholder="First Name" required /><br>
    
      <input id="lastname" class="emrform" name="lastname" type="text" placeholder="Last Name" required /><br>
    
      <input id="email" class="emrform" name="varchar3" type="text" placeholder="Phone number" required /><br>
    
      <input id="firstname" class="emrform" name="email" type="text" placeholder="Email" required /><br> Upload your CV<br><input id="fileUpload" class="emrform" name="fileUpload" type="file" accept=".pdf,.doc,.docx" /><br> Interested in receiving further
      emails?
    
      <br>
      <input type="radio" name="varchar4" value="yes" id="varchar4" checked> YES<br>
      <input type="radio" name="varchar4" value="no" id="varchar4"> no<br>
      <br>
    
      <br>
      <textarea class="emrform" id="textarea" rows="5" name="varchar2" placeholder="Message details..."></textarea>
      <br>
    
      <input type="submit" class="emrbtn emrbtn-primary" value="Submit"></form>
    <div id="HubFormResult">
Viewing 5 replies - 1 through 5 (of 5 total)
  • Looks like you are using HubSpot CRM. How are you generating the form on the WordPress side? Are you using a form provided by HubSpot, a plugin built specifically for HubSpot, or a basic forms plugin that has an addon for HubSpot?

    Thread Starter wpforumuser

    (@wordpressforumhelp)

    Hi Davood…

    Thanks for the reply.

    The CRM is not hubspot, i changed the url to hide the company domain.

    They provided me with a basic form to edit with these details

    <form id=”CRMNAMEHubForm” action=”https://www.CRMNAME.co/Api/FormAdd&#8221; method=”post”>
    <input type=”hidden” name=”ClientId” value=”123″>
    <input type=”hidden” name=”FormTypeId” value=”1234″>
    First name:<br><input type=”text” name=”FirstName”><br>
    Last name:<br><input type=”text” name=”LastName”><br>
    Email:<br><input type=”text” name=”Email” required><br>
    <input type=”submit” value=”Submit”></form>
    <div id=”CRMNAMEHubFormResult”></div>

    Many thanks

    I would need to know what the CRM is to provide solid support.

    It sounds like their form is not able to send files back to their API from WordPress. I might be wrong but that is the only thing I can think of. You may need a custom plugin to be written to get it working how you expect.

    • This reply was modified 6 years, 9 months ago by Davood Denavi.
    Thread Starter wpforumuser

    (@wordpressforumhelp)

    Hi Davood

    The CRM company is a little small business, so there is no information on how to really set it up.

    I just think the upload part is not talking to their server.

    I have uploaded an image the extra field settings from the backend to show the options I have set.

    https://ibb.co/jqgXGH

    Many thanks for your help so far.

    Moderator bcworkz

    (@bcworkz)

    As Davood indicated, what you need to do is largely dependent on the CRM API requirements, so there’s little we could do to help in that respect.

    I mainly just want to point out that for a form to send a file upload, the form tag needs to include enctype="multipart/form-data". Add that to your form tag and see if it helps at all.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WordPress form not sending file attachement to CRM’ is closed to new replies.