I created a custom entity called School, that has a one-to-one relationship with the Account entity. When I create a School record from the Account screen, I want it to copy the Account name to the School name field. In the Before-Save script for School, I entered the following:
name = account.name;
However, it doesn't work, I guess because the related attribute value isn't available until after the record is saved. I also tried pre-populating the name field by adding the following to relationshipPanels->School in clientDefs/Account.json:
but the name field is still empty. How can I make this work?
name = account.name;
However, it doesn't work, I guess because the related attribute value isn't available until after the record is saved. I also tried pre-populating the name field by adding the following to relationshipPanels->School in clientDefs/Account.json:
Code:
"createAttributeMap": { "name": "accountName" }
Comment