Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

Hide or disable flat form option

Brendan Fry asked on June 1, 2020

Is it possible to disable/hide the flat form option in the panel – options?

2 answers

Mykhailo Halaida Mykhailo Halaida Flexmonster June 1, 2020

Hi Brendan,
Thank you for posting your question.
Since the Options pop-up window is a part of the Flexmonster Toolbar, you can modify the content of the Options tab with toolbar customization. Please check out the following page for more info:
In this particular situation, to disable the flat view in the options window you would need to modify the showOptionsDialog function defined in the flexmonster.toolbar.js file. More specifically, to hide the flat form radio button, the following code block (on line 2037) needs to be removed:

if (options != null && options.hasOwnProperty("dataSource") &&
!(options["dataSource"]["type"] == "microsoft analysis services" ||
options["dataSource"]["type"] == "mondrian" ||
options["dataSource"]["type"] == "elasticsearch")) {

// layout - flat
var item = document.createElement("li");
var itemWrap = document.createElement("div");
var flatViewCbx = document.createElement("input");
flatViewCbx.type = "radio"; = layoutGroup; = "fm-lt-3";
flatViewCbx.value = "flat";
var label = document.createElement("label");
label.setAttribute("for", "fm-lt-3");
self.setText(label, Labels.flat_view);

This part of the Toolbar source code is responsible for displaying the flat form option in the pop-up window – if you get rid of it, the flat form option is no longer available.
Please let us know if this helps.
Best regards,

Brendan Fry June 1, 2020

Thanks, works as expected

This question is now closed