-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Support thread
After syncing the json forms to GF > Go to to form edit screen. If Gravity Forms Save button is clicked without making any changes, “inputType” => “” is added to add field data in json.
But if I make even one change on any field, etc. add a space to label or remove one, all “inputType” => “” -lines are removed.
Although the empty inputType doesn’t seem to be doing anything, I hope this will be fixes as it often results in back- and forth pull requests.
My response
Hi, thanks for trying my plugin!
The string “inputType” does not appear in this plugin, so it’s not something I’m trying to do.
I can reproduce your test. I see the inputType attributes on fields appearing. The method that’s doing it is GFAPI::update_form(). That’s in Gravity Forms. I’m calling during the .json Load button click. The inputType attribute is showing up in your .json file after a form change is detected during the load.
The Forms > Import Export > Export Forms feature creates .json without these attributes, but once they are added, they persist. More research is necessary on this one. Thanks for the tip.