Disable section tab for mobile view

Confluence User - 02 Oct, 2016

Dear Expert,

I did use a "section tab" plugin for few forms. However, I found out those form will not work with Mobile View. So can I disable that plugin if a Mobile View is detected ?

Best Regards

Tony Chu

section;tab;mobile;custom;plugins

2


05 Oct, 2016
confluenceUser
confluenceUser

Hi, the plugin is using easyWizard library. Look like it does not offer this options.

14 Oct, 2016
confluenceUser
1
confluenceUser

Dear All,

I found a solution to disable the "Section Tab" at Mobile View. Hope this can help you

Here is my Solution

Configure the permission of the section that contains "Section Tabs" to Bean Shell Permission and insert the following code as Bean Shell

import org.joget.apps.app.service.MobileUtil;
public boolean validate(){
    boolean result = false;
    if (!MobileUtil.isMobileView()) {
        result = true;
    }
    return result;
}
return validate();

With this configuration, It will show the "Tab" view if the user using Desktop View. But it will show the section as normal if the user accesses it with Mobile view. 

Best Regards

Tony Chu

 

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print