Add custom attributes to fields

I would like to see the ability to add a custom attribute to a form field. We use Zoho SalesIQ. If there was a way we could connect form submission data to SalesIQ if we could add a custom attribute.

For example: <input siqatrib=“email”…

Please consider this for future releases.

Thank you for the suggestion. I will add that to our list of requested features.

You can also do this with Javascript

1 Like

Thanks, this made things so much simpler. I’m not strong with JavaScript or jQuery. So my plan is to add a class to the different types of inputs. Then I’ll add the jQuery code below.

if ($(".gfield").length){
//check if page has a form
  $(document).ready(function() {
      $('input.fname').attr("siqatrib", "firstname"); 
            //add attribute based on input class
      $('input.lname').attr("siqatrib", "lasstname");
      $('input.phone').attr("siqatrib", "phone");
      $('input.email').attr("siqatrib", "email");
      $('input.company').attr("siqatrib", "company");
  });
}

We use Zoho SalesIQ. It can capture CRM data from forms but you have to use Zoho forms. I’d rather use Gravity. We have 4 forms in total and this will make that capture nice and neat. Thank you so much for pointing me in the right direction.

1 Like