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

New Custom Field


  1. microvb
    Member

    What code do I need to modify to create a new custom field with custom validation.

    Lets start with something simple:
    INPUT TYPE = Text
    MIN_SIZE = 5
    MAX_SIZE = 5
    NUMBERS ONLY
    VALUE IS STORED AS TYPE STRING
    FIELD IS REQUIRED

    (ps. I noticed a couple of other posts similar to this, however, this is a very different subject matter in the fact I am not attempting to customize the style of the field, only to create a new field type to show up on the Edit Form page)

    Posted 15 years ago #
  2. yuniar

    Sorry, this one would require a lot of code changes among multiple files. We can't help much with it.

    We'd be glad to help with some small functionality adjustment, but new functionality or other complex customization won't be supported.


    MachForm Founder

    Posted 15 years ago #
  3. microvb
    Member

    I only asked what code I need to modify because this is functionality which is in the most basics of forms. For instance, a credit card number is long but does not exceed a certain length, requires to be a minimum length and should not be passed as a numeric value. It should also then be validated by LUHN 10 algorithm. Same with bank account information, etc.

    Currently, basic functions that your product doesn't support is setting of maximum and minimum field lengths. This should be available on all field types except <select>, and <input type="checkbox">.

    Posted 15 years ago #

RSS feed for this topic

Reply