You would have to create a function. I would create an input field in Gravity Forms called internalID. I would then give it a CSS class of hidden. I would then check off allow populate dynamically. I would give it a parameter name of internalID as well. I would edit my css to have
.hidden { display:none; }
You could then using some PHP code create a function to fill this field out automatically. You would have to connect to the database, and check what was the last number assigned, add one to the number and then pre-populate that field with your new value, but coming up with this custom code is beyond the support I can provide here.
The hook to pre-fill a field is:
http://www.gravityhelp.com/documentation/page/Gform_pre_render
So then you would have a number generated based on the last number used, assign the value to a hidden field, and then when you export the data, you could easily sort it by the internalID field.
Posted 12 years ago on Wednesday July 25, 2012 |
Permalink