Radio Button

Can someone show the the basic code that I need to add in order to have radio buttons on my web to lead form?

For example, I know I need the basic radio code such as:

<form>
  <input type="radio" name="gender" value="male" checked> Male<br>
  <input type="radio" name="gender" value="female"> Female<br>
  <input type="radio" name="gender" value="other"> Other
</form>

However, I don't know how to edit this code in order for the information to be sent to my insightly account and show up in the description field?

I know I need to modify this line of code somehow and connect it to my radio info.

<label for="Description">Description: </label><input id="insightly_Description" name="Description" type="text"/><br/>

Could someone please help???

1

Comments

9 comments
  • Official comment

    You should be able to replace the text input field with the radio buttons, just make sure they have the id attribute set to the same value as the text input. Then that should work.

    Thanks,

    Brian McConnell

    Insightly Engineering Team

    Comment actions Permalink
  • Hi Brian, I was able to get it to work. However, my only remaining challenge is to get Insightly to bring in both of my radio forms into the "Description" box within the Lead Tab in Insightly. It works when I only have one radio form, but gives me an error when I have two or more radio forms. Is there something that I am doing incorrectly or is Insightly not working correctly?  I am not an expert programmer. I just need a little help with this last part and I will be good to go. Please let me know. BTW... I have replaced my ID info with "###".


    <form name="insightly_web_to_lead" action="https://googleapps.insight.ly/WebToLead/Create" method="post">
    <input type="hidden" name="formId" value="####"/>

    <label for="insightly_firstName"><b>First Name</b><br/>
    </label><input id="insightly_FirstName" name="FirstName" type="text"/><br/><br/>

    <label for="insightly_lastName"><b>Last Name</b><br/>
    </label><input id="insightly_LastName" name="LastName" type="text"/><br/><br/>

    <h2>Delivery Address</h2>

    <form>
    <label for="Description"><b>Delivery Location Type</b><br/>
    <p style="color:grey;">* Is this a business or personal residence?</p>
    <label><input id="insightly_Description" name="Description" type="radio" value="Delivery Location Type: Business Location" checked> Business Location<br/>
    <label><input id="insightly_Description" name="Description" type="radio" value="Delivery Location Type: Personal Residence" > Personal Residence<br/><br/><br/>
    </form>

    <form>
    <label for="Description"><b>Is a liftgate required?</b><br/>
    <p style="color:grey;">* A liftgate is used in order to lower pallets off of the truck. A liftgate is not needed if you have a forklift or a raised loading dock.</p>
    <label><input id="insightly_Description" name="Description" type="radio" value="Yes, liftgate is needed" checked> Yes, liftgate is needed<br/>
    <label><input id="insightly_Description" name="Description" type="radio" value="No, liftgate is not needed" > No, liftgate is not needed<br/>
    </form>

    <input type="hidden" id="insightly_ResponsibleUser" name="ResponsibleUser" value="###"/><br/>
    <input type="hidden" id="insightly_LeadSource" name="LeadSource" value="###"/><br/>
    <input type="submit" value="Submit"/></form>

    0
    Comment actions Permalink
  • Hi, unfortunately you cannot have two different radio button groups mapped to the same database field (e.g. description). If you need a more complex form, I would recommend using our web API for this (the web form is pretty boilerplate). You'll need to find a web developer who is comfortable with basic web scripting (lots of people can do this), Upwork and Craigslist are both good places to look for people who are looking for freelance gigs like this. I am the lead support contact for the API and am happy to help whoever works on this.

    Thanks,

    Brian McConnell

    Insightly Engineering Team

    0
    Comment actions Permalink
  • Ok. Good to know. Is the web API able to handle put that info in separate "custom" data fields yet? Or does all the custom info need to go into the description box?

    0
    Comment actions Permalink
  • No, with the API you have much more control over data types, and can read/write to custom fields directly.

    0
    Comment actions Permalink
  • Thanks Brian!

    0
    Comment actions Permalink
  • Hi Brian,

    I have a form the is successfully created and working with Insightly via Google Apps Script.

     

    However, I have a second one that is giving me an error. Could I share my Google form with you so can take a look at my google apps script to see why it isn't working properly?

    I just need your email address.

    0
    Comment actions Permalink
  • Hi Brian,

    I am just checking in to see if you can help us with our project per your offering in your previous message.

    Please let me know.

     

    Thanks.

    0
    Comment actions Permalink
  • Hi Michael,

    Unfortunately, Brian is no longer with us and we don't have the resources available at this time that can assist you with your project.

    I apologize for the inconvenience.

    0
    Comment actions Permalink

Please sign in to leave a comment.