PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Company ID text box changed to Company Name in backend automatically.

  1. Hi all,

    We're helping a client setup a form where people can fill out anonymously to complain about their company they work for. The client is going to be offering this service to 100's of businesses in USA.

    When people come to fill out this form anonymously, it will have a blank for them to put in Company ID code. Is there a way that once they put in the ID code, fill out rest of form and then press SUBMIT that it turns that ID code into company name in the backend so when we export a report that it will have company name on the the Excel spreadsheet in addition to the company ID so our client doesn't have to go look up company IDs each time that the export is done? I understand that the company ID and company name would need to be manually entered once on the backend.

    Hope this all makes sense. Thanks in advance for your help.

    Aaron

    Posted 12 years ago on Friday August 31, 2012 | Permalink
  2. I think I would do this with the gform_pre_submission hook. You can grab the company ID from the form input, compare it to your list of companys, then update an admin only field in the submission with that company information.

    http://www.gravityhelp.com/documentation/page/Gform_pre_submission

    The list of ID/Company information can be stored anywhere you like. It will need to be read by your function which will be hooked to the gform_pre_submission hook.

    Posted 12 years ago on Sunday September 2, 2012 | Permalink