Replies: 8 comments
-
@Enuriru this is covered with |
Beta Was this translation helpful? Give feedback.
-
"Set default value via parameter" have to be |
Beta Was this translation helpful? Give feedback.
-
Can you be more specific, @Enuriru? Setting a default parameter makes it a _GET variable and available through that magic tag. What is this not accomplishing for you? |
Beta Was this translation helpful? Give feedback.
-
I suspect they want to be able to have the default pulled from something other than _GET, like what is listed under the 'Dynamic tags' on that link you posted. So you could use a cookie, WP Option, other arbitrary values. |
Beta Was this translation helpful? Give feedback.
-
Yes, James is right :) |
Beta Was this translation helpful? Give feedback.
-
Okay, I'd like to update your description at the top for this issue, because it's not terribly clear as it currently stands. At present, Special Magic tags can only be used in these 4 locations:
You would like the 'Set Default Value via a Parameter' to be able to use one of those dynamic values as it's 'value' based on a Magic Tag. I've always looked at that field as the place you name the parameter that the field will use, but you'd like it to serve double duty. Either take a straight value for the parameter to lookup and provide the value or switch to a magic tag format, so it opens up 'constant, get, user, or any of the other dynamically defined magic tags, right? |
Beta Was this translation helpful? Give feedback.
-
That's right. I want to build a convenient UI for my users and I need several defaults depend on user roles, site domain, etc. I.e. a have a couple of similar fields almost in every pod. Discussed improvement allows me just to set a couple of constants and use {@constant} instead of javascript hacks to set the fields. Honestly I can't imagine a case where you use the get parameter for default values :) |
Beta Was this translation helpful? Give feedback.
-
I actually always wondered what usefulness that would have as well. I suspect it was implemented for a specific use case, but it would be better served by something a little more generic. There is some small potential for security abuse with it, but it would required the admin to make some bad choices (ie: sending the output of some user input into a dangerous function like eval) |
Beta Was this translation helpful? Give feedback.
-
It would be nice to add support for {@constant.XXX} and other magic tags for "Set default value via parameter".
Beta Was this translation helpful? Give feedback.
All reactions