First saving

Hello,

I need to perform some actions in JS code during the first saving of the record. How can I do that?

File attachments

Like

1 comments

var cardState = this.sandbox.publish("GetCardState", null,[this.sandbox.id]);

          var isNewRecord = (cardState.state === ConfigurationEnums.CardStateV2.ADD||

                        cardState.state === ConfigurationEnums.CardStateV2.COPY);

 

or

 

var isNewRecord = this.cardAction === 'add' || this.cardAction === 'copy';

Show all comments