Editing via shortcode variable?
-
Is it possible to allow the toggling of edit functions by making the
edit="true"a variable? I have a user-editable table on one page that doesn’t always need to be edited, but will always be used to select values to paste elsewhere. I tried adding a selection box to my search form, and a POST reference to the shortcode, but it doesn’t work. Here is what I tried:<form name="test" action="" method="POST"> ...[other elements]... <select name="edstatus"> <option value="true">Enabled</option> <option value="false">Disabled</option> </select>...[other elements]...</form> [cfdb-datatable...{filter and atts} ...edit=&_POST(edstatus)]This code is treated as if
edit="false"regardless of what the value of the selection element is. I didn’t know if I had the syntax wrong, or if what I was trying to do was just not possible.Thanks!
https://ww.wp.xz.cn/plugins/contact-form-7-to-database-extension/
The topic ‘Editing via shortcode variable?’ is closed to new replies.