How do you extend the create.js on a module level?

We have created a 1 to 1 relationship for 2 custom modules. Now when we create a related record based on the parent record we want to hide or do some customization on the create drawer. We have already achieved this but we have to copy the entire create.js file to custom/client/base/view/create/create.js. My question is can this be done on a modular level without the need to copy the entire file?
Parents
  • Hi Chris,

    Thanks for the reply. The workaround you gave is the same as one of your articles on the developer guide on sugar. It would call the record.js of Module 1 but when you try and create a Module 2 record the customization doesn't seem to work. Also i need to add a few validations before i hit save.

    I did some digging up with your create layouts and views and started customizing the create-noduplicate and create-action which extends the default create view. Those two can be customized on a modular level.
Reply
  • Hi Chris,

    Thanks for the reply. The workaround you gave is the same as one of your articles on the developer guide on sugar. It would call the record.js of Module 1 but when you try and create a Module 2 record the customization doesn't seem to work. Also i need to add a few validations before i hit save.

    I did some digging up with your create layouts and views and started customizing the create-noduplicate and create-action which extends the default create view. Those two can be customized on a modular level.
Children
No Data