I am new to PHP, and this is my first time customizing Gravity Forms, so I apologize in advance for anything that doesn’t make sense, or is just plain wrong. Anyways, I am having trouble getting my custom field type to save correctly. I created a custom field type which extends Gravity Forms Select field, so that I could take advantage of the Select2 library (to add inline images in my drop-down menus). Not sure if this the best way by any means, but this was my first idea since I had done something similar with a different WordPress plugin called MetaBox in the past. I will attach a photo of what this field looks like on the front-end for reference.
Before I added this custom field type, I was using Gravity Forms basic select field to make sure I had everything “plumbed” correctly, so that on submission of this form, a new row would be added in my custom database table. All of that is working like it should, (besides this field not getting populated for new rows).
My code to create the custom field type is as follows:
Like I mentioned earlier, all of this is pretty new to me, so I would really appreciate any guidance I can get, on what I may be forgetting / doing wrong. Or, if there is an a easier way to acheive the same result I am looking for, I would love to hear it as well! Thanks!