This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

custom field type


  1. glesica
    Member

    Is it possible / fairly simple to create a custom field type based on another field type? I'd like to create a drop down list field that is pre-populated with a particular set of choices. The set of choices will almost never change so it is fine if they are set in code.

    Thanks

    Posted 13 years ago #
  2. yuniar

    I'm afraid this one won't be quite easy to do. It would require pretty much Javascript code. Sorry :(


    MachForm Founder

    Posted 13 years ago #
  3. glesica
    Member

    That's fine. I figured an acceptable substitute for a custom drop down would be a text area where I could just copy-paste choices quickly. I'm working on adding this on top of the existing interface. The problem I'm having is that pulling jquery into the page (by editing include/header.php) seems to cause problems. Is there a clean way to get jquery in to the edit_form.php page?

    Thanks

    Posted 13 years ago #
  4. yuniar

    Actually, jQuery already included there. It is defined as:

    var JJ = jQuery.noConflict();

    so you can use it by calling JJ();


    MachForm Founder

    Posted 13 years ago #

RSS feed for this topic

Reply