DB Toolkit
Create a dropdown list and colour picker (2 posts)

  1. maramk
    Posted 5 years ago #

    Dear David,

    First of all congratulations on such a great plug-in - you give wordpress a different meaning not only as a blogging but also as a web application framework (similar than to evarisk), I am impressed and "Local is lekker!"

    Something else - if you create a Boolean (enum) in your database how can you create it as one of either yes or no (radio button) or a a dropdown list e.g additional fields e.g province - with the 9 provinces in the list - can this db toolkit create such a feature. I think your plug-in have the capability to do that as well - I just want to know how.

    Keep up the good work!

    Thank you.

    Kind regards,



  2. David Cramer
    Plugin Author

    Posted 5 years ago #

    Hey, thanks for the great comments.

    now on to your question:
    the enum fieldtype sets the field to a dropdown of all possible values. I could possibly create an option to have it as a dropdown or a radio group, that's not a bad idea.

    you could also create a new table called provinces and then create a joined field to that table, that will result in a dropdown or radio group of all the values available from the joined table. take a look at linking on my tutorial site http://dbtoolkit.digilab.co.za/day-4-joining-tables-and-filtering-results/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic