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! Go to 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.
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.
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.
Then when I click on one of the emails, the add action is still there but takes the email address of the sales rep.
Clicking on the individual sale it then opens the edit tab.
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.
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.
User | Count |
---|---|
28 | |
27 | |
22 | |
13 | |
6 |