Is there a way to dictate which options are available (or not available) in a dropdown via the shortcode?
Is there a way to dictate which options are available (or not available) in a dropdown via the shortcode?
I'm not sure I understand what you are trying to do. Can you give me more information?
If I had this as my shortcode:
[gravityforms id=1 field_values='hide=pdf,idml']
Then, the dropdowns wouldn't show the options with values of "pdf" or "idml."
Another way to do this would be to use conditional logic, but it appears you can only set that logic on the entire form field and not the individual options within a field.
That's correct. The only way to do what you want would be to use PHP and one of our hooks. So the field wouldn't have anything in it, and then based on whatever qualification you want, you could load different lists in the dropdown. Let me know if that sounds like a workable solution, and I can point you to the right hook.
That's honestly beyond my abilities. I have an ad on oDesk if anyone reading this board wants to apply (or message me here).
https://www.odesk.com/jobs/Gravity-Forms-plugin_~~9cc71eb752f8bab6