insert link to update field not working

By: Andrew McSpadden | Asked: 09/05/2024
ForumsCategory: General questionsinsert link to update field not working
Andrew McSpadden asked 2 weeks ago

I am trying to follow these steps to update a field in my form.. the field is a dropdown -- I am using it to change "form status" so we can support multiple drafts.  https://formidableforms.com/knowledgebase/insert-a-link-to-change-the-value-of-a-single-field/  

using this shortcode

[frm-entry-update-field id=[id] field_id=46 value="Final" label="Change Status"]

  Getting this error

You are missing options in your shortcode. A field_id is required. field_id=46 value="Final" label="Change Status"]      

 

quick, 1 minute video showing what I'm doing (the form has been submitted and I am editing -- BUT it doesn't matter if it is a new form or not) https://learn.dreamsitegurus.com/recordings/fhRAiRckogpqSu2dhoDx?uploadId=0f1lsMJvk48thMhcnofK

1 Answers
Rob LeVineRob LeVine answered 2 weeks ago
I set up a simple example with a status drop-down and an HTML field with the frm-entry-update-field command in it. I got the same error. I then switched the [id] to an actual number and the error went away. I'm pretty sure that in this case you can't nest shortcodes. You're going to have to figure out a different way to do it.
Andrew McSpadden replied 2 weeks ago

interesting because in the docs it says you can use [id]...

[frm-entry-update-field id=x field_id=y value="Updated"]

x = ID of the entry to update. Make the entry ID dynamic in a View by replacing x with [id].

Rob LeVineRob LeVine replied 2 weeks ago

In a view it'll work. It could be a bug. Ask Formidable Support.

Rob LeVineRob LeVine replied 2 weeks ago

Looking at the code, it's pretty clear that it doesn't think there's a field id and the suspect would be the parsing of the shortcode, so I'm sticking with my thought that you can't use it in your scenario.
https://github.com/wp-premium/formidable/blob/master/pro/classes/controllers/FrmProEntriesController.php

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right