Question

Account profile required on page level

Hi team, 

 

Is possible to require the account profile on the level page only? I don't need the required in the object.

 

Thanks,

 

https://academy.creatio.com/docs/developer/interface_elements/record_page/connected_entity_profile/overview?_gl=1*1isevxx*_gcl_au*NTc3MzUwNDUyLjE2ODg2NDkyNTQ.#

Like 0

Like

2 comments

Hi,

 

Yes, you can try overriding the save method and require the column that represents the profile to be filled in. In the case with the example from Academy:

save: function() {
				if (!this.get("Account")) {
					Terrasoft.showErrorMessage("Account is required");
				} else {
					this.callParent(arguments);
				}
			}

If account is not filled in (that is done by the account profile) the error message will be shown, otherwise saving will be successful. 

Thanks Oleg. I was looking for something related to the module in specific. Anyway this workaround works

Show all comments