Show/Hide Custom Send Button or Normal Send Button

If you had a requirement like:

  • You have to hide normal Send Email Button option and show Custom Send Button when any field on the current form has some value and
  • Show normal Send Email Button and hide Custom Send Button if the field doesn't have value or set as null. 

See below image to understand my requirement:

Solution:

For this type of scenario, you can use Enable Rule in Ribbon Customization for show or hide Custom send button or normal Send button.

For achieving this you can use Ribbon Workbench, and open your solution with "email" entity.

Open your solution in Ribbon Workbench, after opening your IE page looks as shown below:

What elements we are going to look for this:

First look my custom button command:

Rule:

Now see rule for Normal Send Email button:

Rule:

 

Output:

When Offer ID field contains value in it:

When Offer ID field doesn't contains value in it:

 

Happy CRMing.........

Add comment