Question

Hide add button on detail (+) but only on one page

Dear Community,

 

I have the same detail on a page but in 2 different pages.

Is it possible to remove the (+) button from the detail on one page but not the other?

I've read this one and this one on how to hide it, but they hide the (+) button on every page.

 

This tab requires the detail to have a (+): Detail1

On a different page, this detail can not have the (+): Detail2

 

Thank you.

 

 

Kind regards,

Yosef

Like 0

Like

2 comments

Hello Yosef,

I have an article on that topic here: https://customerfx.com/article/conditionally-making-a-detail-read-only-…

Basically, the article determines if the "Add" button is available based on the column that the detail is connected to the page with. For example, if you had a detail that could be on the Account page (connected by the detail column UsrAccount) and also on the Contact page (connected by the detail column UsrContact), you could make the Add button available only on the Account page by using the following: 

getAddRecordButtonVisible: function() {
    // if the detail is connected to the page using the column UsrAccount 
    // make the Add button visible
    return (this.get("DetailColumnName") === "UsrAccount");
}

Ryan

It is also possible to create 2 details based on the same object - one with "+", another - read-only

Show all comments