hidebuttons

Feb 19, 2013 at 9:49 AM
First of all, thank you for this module, it works pretty well for our use cases.

One problem I'm facing is with the option "hidebuttons". I can't figure out how to configure it correctly; it either crashes or shows the buttons. I tried (without "):
  • "hidebuttons" -> crashes
  • "hidebuttons=yes"
  • "hidebuttons=true"
  • "hidebuttons='yes'"
  • "hidebuttons='true'"
Thanks in advance for helping me out!

Markus
Mar 28, 2013 at 11:16 PM
Hi Markus,

If you check the source code you can see that the check for parameter "hidebuttons" is actually expecting value "false" to hide the buttons.
This seems like a bug but if you put hidebuttons='false' it works fine.

// Set HideButtons
        HideButtons = ((par.ContainsKey("hidebuttons") &&
                        String.Equals(par["hidebuttons"], "false", StringComparison.OrdinalIgnoreCase))
                       || Utility.FormType == Utility.FormTypes.ReadOnly);
All the best
Stefan
Apr 29, 2013 at 12:37 PM
Hi Stefan!

Thank you for your reply! It works exactly as you described it - the "false" still seems kind of strange.

Cheers
Markus