Question

Detail appears only after clicking Save, not before

Hello community!

I have created a new Section, which has a detail inside. When I click New, I dont want the detail to appear in the page. ONLY after clicking Save the detail should appear in the page.

Is this possible in Creatio? If so what are the possible customizations that I should do in the JS files.

Like 0

Like

2 comments
Best reply

Hello Petrika,

 

You can add the code below to the edit page of your section to hide a detail when a record is added (in my example the detail had the "Detail to test" caption):

getDetailInfo: function() {
				var detailInfo = this.callParent(arguments);
				if (this.isAddMode() && detailInfo.caption == "Detail to test"){
					return;
				}
				return detailInfo;
			}

Best regards,

Oscar

Hello Petrika,

 

You can add the code below to the edit page of your section to hide a detail when a record is added (in my example the detail had the "Detail to test" caption):

getDetailInfo: function() {
				var detailInfo = this.callParent(arguments);
				if (this.isAddMode() && detailInfo.caption == "Detail to test"){
					return;
				}
				return detailInfo;
			}

Best regards,

Oscar

Oscar Dylan,

Thanks for the great help Oscar!

Show all comments