AnsweredAssumed Answered

How to add/remove teams to a record via sidecar javascript before it is saved?

Question asked by Conrad Hodge on Apr 29, 2015
Latest reply on May 1, 2015 by Conrad Hodge
I am trying to remove the Global team and add various teams to a record on the create page via the sidecar javascript before the record is saved.

So far I have tried the following code in the _renderHtml function in the create_actions.js file:

var teamsField = this.getField('team_name');
teamsField.value = 'A Team';
teamsField.addTeam();

This does show that the "A Team" has been added to the "Teams" field on the record view but after I save the record it reverts back to the "Global" team.

Outcomes