Hide add button in same view after clicking on individual information

I've designed a view for adding and viewing sales, where sales entries are correctly populated with user-specific details, such as their email address and the current date (Today), upon addition. However, upon navigating to an individual sale date, all sales entries display the salesperson's email address, and the Add button persists. Surprisingly, when I click on the Add button, it seems to use the salesperson's email address and a different date. Although the edit option in the column retains my code to fetch the user's email address and today's date, I'm seeking a solution to prevent the Add button from appearing in the view after clicking on an individual sale date. Any assistance or suggestions on addressing this behavior would be greatly appreciated.

Solved Solved
0 4 159
1 ACCEPTED SOLUTION

ok, I didn't realize that it was a single view with "group by", so yes you cannot manage the show button in this context. 

the alternative could be to create a new form view with a dedicated tab then disable the add button for this table. 

Capture d’écran 2024-02-02 à 13.30.51.pngCapture d’écran 2024-02-02 à 13.30.36.pngCapture d’écran 2024-02-02 à 13.30.24.pngCapture d’écran 2024-02-02 à 13.30.16.png

View solution in original post

4 REPLIES 4

Hi @HugoL ,

Did you tried to manage your button with CONTEXT() ?
Into the Behavior section of your action button as like below: 
Capture d’écran 2024-02-02 à 09.47.41.png

 

Hi Richard,

Thank you for the advice and reply. I did try it but the problem is that its in the same view if I'm understanding the code correctly. Below is a picture of the view.

HugoL_0-1706868555161.png

The add action works in this view but if I click on a date the next page loads. Here the add actions still performs as it should.

HugoL_1-1706872807708.png

Then when I click on one of the emails, the add action is still there but takes the email address of the sales rep. 

HugoL_2-1706873080601.png

Clicking on the individual sale it then opens the edit tab. 

HugoL_3-1706873174047.png

 

 

ok, I didn't realize that it was a single view with "group by", so yes you cannot manage the show button in this context. 

the alternative could be to create a new form view with a dedicated tab then disable the add button for this table. 

Capture d’écran 2024-02-02 à 13.30.51.pngCapture d’écran 2024-02-02 à 13.30.36.pngCapture d’écran 2024-02-02 à 13.30.24.pngCapture d’écran 2024-02-02 à 13.30.16.png

Thank you, that would probably be the best solution.  Just wanted to minimize the amount of options at the bottom, by trying to use one tab as an add and view tab with the option to edit the sale. 

Top Labels in this Space