May Mission - Hiding the ribbon

Document created by chris.ben Champion on May 15, 2016Last modified by chris.ben Champion on May 16, 2016
Version 2Show Document
  • View in full screen mode

Hi all,

 

Here's a simple but effective form we use here at Provoke.  If someone has to leave our social club we have a fancy workflow that changes groups in active directory and informs payroll and other cool things.  All the form needs to do is make sure that person really wants to leave the social club.  So when they first load the form the save button is hidden.  It looks like this:

May1.JPG

 

 

It is not until they've ticked that confirm box that the submit button appears:

May2.jpg

 

It's extremely easy to set that up.  I've named the tick box control ctrlConfirmation and written a rule to hide the Save button if that box hasn't been ticked.

May4.JPG

 

That worked perfectly except the same Save and Cancel buttons appear in the ribbon by default:

May6.JPG

 

The hide function unfortunately does not hide the save button in the ribbon.  Not to worry!  By the power of JavaScript, I am able to hide the button.  I tried that but it looked a little strange with the save button always missing so I decided that I'd just hide the whole ribbon for this form.  Nice and simple, nice and clean.

May5.JPG

 

Some of you may have already thought of another way to approach this same problem - put some extra validation on the ctrlConfirmation control and force it to be ticked.  That would work just as well.

 

Cheers,

Chris

Attachments

    Outcomes