Replies: 0
I couple of years ago I used a snippet to create fields in the Form Settings backend menu so I could fill some extra configuration that I loaded on the form to create a dynamic form. Not going into full detail of the snippets, but basically saving a specific Select field selection on form submission, and counting the amount of times each selection was submitted so I would remove it from the form when it reached a max number that I would also set in the Settings Menu. Very similar to this https://www.billerickson.net/code/wpforms-dynamic-availability-in-booking-form/
But now the function
wpforms()->form->update( “form id”, $form_data );
is wrapped around a wpforms_current_user_can() check, so the user needs to be logged in and have it’s role allowed in “edit_form_single” in Settings>Access, So not logged in users’ form submissions don’t update the Custom Settings in my form.
What is the recommended substitute for the wpforms()->form->update( “form id”, $form_data ); that used to work until a “recent” change that included this Access Control??