Adding and removing the record by click on button in menu and button name should change to vise versa on click of it.
I have requirement to implement that,
1.I have a menu configured on click of down arrow in section, In the menu list there is a button, by default the button label should read to "Add to Favourites" once user click on it, the button name should automatically revert to "remove from favourites".
Added screenshot for reference.
Can you please help me that, is there any OOTB functionality available or any suggestions on the requirement.