Method Community

 

Making dropdown field a required field

Last post 06-30-2015 2:07 PM by Method_Audisho. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-30-2015 10:44 AM

    • magna
    • Not Ranked
    • Joined on 06-30-2015
    • Posts 1

    Making dropdown field a required field

    I have created a dropdown field and want to make it required. what is the best way to do that.

    Also, how do I change the dropdown list once it has been created.

    Appreciate the help.

    Thx

  • 06-30-2015 2:07 PM In reply to

    Re: Making dropdown field a required field

    Hi Magna,

    Generally, when you add a custom dropdown field to a table, a screen is generated in your account for adding, modifying and removing the records in the dropdown table. The screen generated will have the same name as the field and can be located under Customize > Screens. You can also build a screen yourself. Have a look at the screen CRM_ActivityStatusList for an example of a screen with similar functionality.

    In order to make the field required on a database level, you need to make sure that all records in the table have a value for this field. Once you have done this, you can select the “Required?” checkbox on the edit fields screen for the table.

    Additionally, you can make the field required on the screen level. To do this, just add a conditional warning to check if the field is blank when the record is saved. If the field is blank, a warning will be displayed and any actions following the warning (including the save action) will not be processed. The following can be added to the field caption after the text to display the red “required” asterisk.

    <span style='color:red' class='pspan'><b>*</b></span>

    I hope this helps.

    Audisho

    Audisho Sada
    Product Manager
    Method:CRM
    a.sada@method.me
    Toll Free: 1.888.925.6238
    Local & Overseas: 416.847.0400
    Fax: 416.640.6027
Page 1 of 1 (2 items)