Calendar - meetings - add a default team by default

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wtconseil
    Active Community Member
    • Apr 2015
    • 335

    Calendar - meetings - add a default team by default

    Hi there

    When enter in the form "Create a Meeting", i'd like to pre-fill Teams fields and set a given Team name.

    Any tricks to do that?

    In fieldManager -> Meetings -> fields "teams", i cannot set a "default team".

    Thanks for your support.
  • emillod
    Active Community Member
    • Apr 2017
    • 1406

    #2
    You can use Formula calculations to check after create Meeting if record have any assigned team, and if not System will assign team

    Comment

    • wtconseil
      Active Community Member
      • Apr 2015
      • 335

      #3
      I dont' want to set this field after that the record has been created
      but i want to set the value "when the form is loading" and end-user will be able to let the default value (most of the time) or remove it

      Comment

      • wtconseil
        Active Community Member
        • Apr 2015
        • 335

        #4
        I tried to update
        www/custom/Espo/Custom/Resources/metadata/entityDefs/Meeting.json

        and set

        PHP Code:
        {
             "fields": {
                "teams": {
                  "default": "javascript: return {teamsIds: ['59956f63b082e2a1c']}"
                },
        ...
        } 
        

        but doesn't seem to work :-(

        Thanks for your support!

        Comment

        Working...