setFieldRequired('fieldname') function does not exist

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • .phil.
    Junior Member
    • Dec 2016
    • 3

    setFieldRequired('fieldname') function does not exist

    Hello,

    I'm having trouble setting a field to required by using the setFieldRequired function, as shown in the documentation https://github.com/espocrm/documenta...ustom-views.md. Apparently the setFieldRequired function does not exist. Are there any other ways to set fields dynamically required or not required? Any help would be greatly appreciated.

    Thanks!
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello
    The easiest way is to use Dynamic Logic in Entity Manager
    Смотрите любимые видео, слушайте любимые песни, загружайте собственные ролики и делитесь ими с друзьями, близкими и целым миром.


    or

    from record/detail view type

    Code:
    this.getFieldView('fieldName').setRequired();

    Comment

    • .phil.
      Junior Member
      • Dec 2016
      • 3

      #3
      Thank you, the Dynamic Logic in Entity Manager worked well. You guys might want to consider updating the documentation accordingly

      Comment

      Working...