Same request as per ombre8 here.
This is used as a front-end to a payment order form. My system needs to generate order numbers automatically.
I have a function that generates (algorithmically) an order number using Unix timestamp as a seed. I need to pass this value to a 3rd party URL, through your “Query string key value pairs to add:”:
order_no={PHP HERE}
It would be nice if this would be compatible with “Shortcode Exec PHP” plugin, which allows me to easily define my PHP function and then call it from anywhere with a custom-defined shortcode. I would then be able to create my order-generation as a shortcode (say “make_orderNo”], and call it from your field “Query string key value pairs to add:”:
order_no=[make_orderNo]
Another idea, which is self-sustained, and wouldn’t make your plug in depended on anything else, you could program a new field type, i.e. “Dynamic”, and you allow form developers to choose from a list of constructors, which would generate dynamic data on-the-fly. For example, “the right X digits from a timestamp”, or “a random number with X digits, ranged from Y to Z”, plus configurable header or trailer.
I would then have a hidden, dynamic field, which I would then rename and pass along to the 3rd party url.
Under a worst-case scenario, where in your php code should I insert a conditional statement, looking for something unique on that form (i.e. the form number), and then define my dynamic field manually?
Thank you for your great plugin!