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

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

Address Field


  1. abdielsax
    Member

    Hi, I just want to remove the "state/province/region" field from the address.

    Posted 11 years ago #
  2. yuniar

    You can edit the "includes/view-functions.php" file. Search around line 3387 and you'll find the HTML tags for the address field.
    Simply remove the state/province/region part.


    MachForm Founder

    Posted 11 years ago #
  3. redemptor
    Member

    Hi there all,

    I have followed this advice and removed the "state/province/region" field and it was OK. However, I am getting an error while filling the address field as it says that all fields are required.

    I have set it as "required" field, but I do fill all areas. Maybe there is some "predefined" type of information for the ZIP/POSTAL code? How can I change it to a "free" field?

    Posted 11 years ago #
  4. redemptor
    Member

    Seems like altough you remove the html lines for the "State/province/region part", while filling the form that area is still required to be filled even tough it is not there. Wouldn't it be easier to add the option to hide that area in the "field properties" as it happens with the option to "hide address line 2"?

    Would it be possible for someone to provide instructions on how to do this?

    Posted 11 years ago #
  5. graham
    Member

    Can we have an update on this please as the 4.2 version is not at this position:! "includes/view-functions.php" file. Search around line 3387

    Posted 9 years ago #
  6. graham
    Member


RSS feed for this topic

Reply