Announcement

Collapse
No announcement yet.

setFieldRequired('fieldname') function does not exist

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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!

  • #2
    Hello
    The easiest way is to use Dynamic Logic in Entity Manager
    Auf YouTube findest du die angesagtesten Videos und Tracks. Außerdem kannst du eigene Inhalte hochladen und mit Freunden oder gleich der ganzen Welt teilen.


    or

    from record/detail view type

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

    Comment


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

      Comment

      Working...
      X