I have created one 'create record' action on an opportunity. This action is related to its child object. Now I want to show or hide this button based on the conditions. If productcount (which is a formula field that contains the number of products count related to that opportunity) contains values greater than 0, then only the user can create a record of the child object. Otherwise, the button should be hidden, or there should be a popup on button click so that the user cannot create a record. All this functionality I have achieved using highlight panel dynamic actions, but it is not working for the mobile Salesforce app. So can someone please help me with this?
TIA