inherit
203080
0
Mar 17, 2014 14:50:56 GMT -8
baratheon
43
December 2013
baratheon
|
Post by baratheon on Mar 6, 2014 18:28:44 GMT -8
I need to create a script that would delete specific UI variables from an auto-form when a user clicks a button. Not sure if this is possible, so I came up with a work around to the issue, but I'd rather keep it simple. Any ideas?
Thanks.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Mar 6, 2014 23:32:25 GMT -8
Are you talking on the plugin settings pages themselves?
|
|
inherit
203080
0
Mar 17, 2014 14:50:56 GMT -8
baratheon
43
December 2013
baratheon
|
Post by baratheon on Mar 7, 2014 15:50:42 GMT -8
Yes, in the plugin settings there is an autoform with several entries/rows that the admin entered; I would like to remove them or at least clear their values when a user clicks a button on a page.
|
|
inherit
162752
0
Nov 7, 2024 3:58:23 GMT -8
Pebble
Where it all does or doesn't happen!
1,437
January 2011
pebbleleague
|
Post by Pebble on Mar 7, 2014 17:24:09 GMT -8
I think you'd be better off asking the plugin author for a version that doesn't need the inputs you want to remove. But, the inputs are usually there for a reason and the plugin probably wouldn't work without them.
|
|
inherit
203080
0
Mar 17, 2014 14:50:56 GMT -8
baratheon
43
December 2013
baratheon
|
Post by baratheon on Mar 7, 2014 18:33:13 GMT -8
I think you'd be better off asking the plugin author for a version that doesn't need the inputs you want to remove. But, the inputs are usually there for a reason and the plugin probably wouldn't work without them. I am the author of the plugin. It is an item shoppe that the admin can add items to through an autoform. I'm simply having trouble figuring out the function to remove an item from the store once it's bought.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Mar 7, 2014 19:52:47 GMT -8
once things are in the plugin settings, they are permanent unless you delete them from the plugin settings. if you want to remove an item from an autoform, click the X on the autoform entry itself. you cannot affect plugin settings permanently from outside the management area.
|
|
inherit
203080
0
Mar 17, 2014 14:50:56 GMT -8
baratheon
43
December 2013
baratheon
|
Post by baratheon on Mar 7, 2014 21:06:40 GMT -8
That's what I was scared of. I came up with a workaround for the process of removing an item (by specifically marking it within the JSON of the items key, and just not displaying it). But I'm just wandering if anybody knows of a better solution?
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Mar 8, 2014 0:00:13 GMT -8
outside of plugin settings, autoform variables are stored in arrays, so you can always use a loop to go through it and remove the ones you want for the rest of the time they are on the page, but once the page reloads they will be back. if you are looking to affect what is stored in plugin settings outside of being in the admin panel and in plugin settings, there just isnt a way. data sent to the servers is controlled by the admin panel for the reason of making sure its formatted correctly.
|
|