First saving
20:58 Sep 30, 2014
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
22:03 Sep 30, 2014
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