JoeSz / Exopite-Simple-Options-Framework

Fast, easy and lightweight admin options/metabox form generator for WordPress Plugins and metaboxes.
GNU General Public License v3.0
78 stars 24 forks source link

Does this framework support conditional fields? #26

Closed HelloAlberuni closed 4 years ago

HelloAlberuni commented 4 years ago

Hi Joe,

Thanks a lot to make this awesome options framework. I really loved! I appreciate your hard works & making it available for free.

I was wondering if this framework supports loading a field which is depend on another field?

Thanks! Azad

JoeSz commented 4 years ago

Hi Azad,

in theory yes. But normally you have to create a filed which support that. The Tab, Group and Fieldset field already does that. You can take a look for more information.

Also if you provide a little more information, what (or how) exactly you
want to accomplish here, maybe I can help more.

Regards,

Joe

On Sun, 05 Apr 2020 23:34:15 +0200, Alberuni Azad
notifications@github.com wrote:

Hi Joe,

Thanks a lot to make this awesome options framework. I really loved! I
appreciate your hard works & >making it available for free.

I was wondering if this framework supports loading a field which is
depend on another field?

Thanks!

Azad

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.[]

HelloAlberuni commented 4 years ago

Thanks for your reply.

I've checked that The Tab, Group and Fieldset field, but didn't notice that I'm looking for. Maybe you've missed my point. Please check below.

For example, I have 3 options.

  1. Background Type (this is a select field. has 2 options named "Image" & "Color"
  2. Upload Image (I want to show this field when user select "image" & hide when select "Color")
  3. Select Color (I want to show this field when user select "color" & hide when select "Image")

Hope this scenario will help you to understand my requirements.

JoeSz commented 4 years ago

Sorry for the late answer. You could take a look in typography field. For hide fields inside custom field, you have to write your own JavaScript.