Announcement

Collapse
No announcement yet.

Change field from optional to required if conditions are met

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

  • Change field from optional to required if conditions are met

    In my custom entity I have a "primary" field with two drop down choices: 1) account and 2) contact. Right now I always require at least one contact to be included, but I only require an account name if the drop down choice is "account". Is there any way for me to make the accounts field required, before the record is saved, if the drop down choice is account?

    Thanks

  • #2
    I do realize I created this post in the incorrect forum; however do not know how to move it to another forum or delete. Is there a way to do so or can this only be done by moderators/administrators?

    Comment


    • #3
      You can do it in recordView detail/edit class. There are methods setFieldRequired, setFieldNotRequired

      Comment

      Working...
      X