Editing Existing Form Submission Programmatically
-
Hi. How can I edit an existing form submission programmatically without tying into hooks? (so just running some php in a template file basically) Need to update a field with a link to a pdf. I have the submission ID (sub_id) and field id (which I assume is the number within the ‘name’ attr of the field) but it’s not working.
I’ve tried just using this in a template file but it’s not working so I’m missing something. Perhaps that has to be tied into a hook (which probably wouldn’t work for me) or I need to instantiate (if that’s the correct term) a global nf variable?
Ninja_Forms()->sub( 1338 )->update_field( 105, 'HOWDY!!!' );Thoughts?
The topic ‘Editing Existing Form Submission Programmatically’ is closed to new replies.