Open Forum

  • 1.  Required Fields

    SILVER CONTRIBUTOR
    Posted Jun 12, 2018 10:34 AM
    Is there a way to make User Defined fields in the account maintenance window required?

    For me it would be State Class and Center Class.



    ------------------------------
    Kathie Fairchild
    Burke
    LUFKIN TX
    ------------------------------
    Academy - Online Interactive Learning from Experts


  • 2.  RE: Required Fields

    GPUG ALL STAR
    Posted Jun 12, 2018 10:43 AM
    @Kathie Fairchild

    The one way that I would do it is to modify the window.

    If you are using a shared Modified Forms Dictionary you will need to do this when everyone is out of the system.

    With the window open you can go to Tools > Customize > Current Window.

    Find the area where you enter information for User Defined 1 ​and mark Required to True.
    You can do this with the other user defined fields as well.

    You will then need to change security to use the modified form.

    Acct Maint Modified

    ------------------------------
    Bert Green
    GP Developer/GP Administrator
    Berger Transfer & Storage, Inc.
    Saint Paul MN
    GP2015/MR CU11
    GPUG All Star 2017
    ------------------------------

    Academy - Online Interactive Learning from Experts


  • 3.  RE: Required Fields

    Posted 25 days ago
    When i change it to false and click off the field and come back on the field it is back to true.  I am in a test company and no one but me is in it.  I trying to make a few fields on my employee maintenance window not required.

    ------------------------------
    Larry Carrethers
    Sr. System Admin/DBA
    Dolese Bros. Co.
    Oklahoma City OK
    ------------------------------

    Academy - Online Interactive Learning from Experts


  • 4.  RE: Required Fields

    GPUG ALL STAR
    Posted 23 days ago
    Hi Larry

    While the Modifier allows you to turn on the Required property for a field, it does NOT allow you to turn off the required field if it was required on the original window.

    Usually fields are required for a reason and allowing them to be saved with not data is likely to break something.

    Please also note that marking a field as required only works if the underlying Dexterity code checks the required() function before saving. If it is hard coded to only check specific fields and does not use the required function (which is bad practice), it will ignore anything you have marked as required.

    Finally: if you use GP Power Tools - Developer Tools you can
    1) use code to change a field from required to not required (but be aware of the possible consequences).
    2) use code to change a field from not required to required without needing a modified window.
    3) use code to validate fields before saving. This could be a simple required (not empty) check or it could be checking specific business rules.

    Regards

    David

    ------------------------------
    David Musgrave MVP, GPUG All-Star

    Managing Director
    Winthrop Development Consultants

    Perth, Western Australia

    http://www.winthropdc.com
    ------------------------------

    Academy - Online Interactive Learning from Experts


If you've found this thread useful, dive deeper into User Group community content by role