Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

Adobe Live cycle designer - Disable "highlight existing field", by default its enabled, also need to hide purple bar

Avatar

Former Community Member

Hi Experts,

Please help me with the below mentioned 2 issue.

Adobe Live cycle designer -

Point 1: Disable "highlight existing field", by default its enabled,

Code used: [but this is not working]

data::docReady - (JavaScript, client)

app.runtimeHighlight = false;


Point 2: need to hide purple bar

Code used: [but this is not working]

data::ready:form - (JavaScript, client)

event.target.viewState = {overViewMode:5}; // Hide all panes - This is even disabling the form's scroll bar also.

Thanks

Sajal

1 Reply

Avatar

Level 1

Hi, I've been breaking my head for the last few hours trying to find a solution to this. I know this may be late, but this is the best solution I've been able to come up with.

Honestly I don't know why this isn't posted somewhere because it works perfectly... it basically "disables" the "Highlight Existing Fields" button... the bar and button are still there, it just won't allow users to effectively use the button.

I placed the following code at the topmost element in the Hierarchy, in form::ready.

topmostSubform::ready:form - (JavaScript, client)

app.disableHighlighting = function() {

    app.runtimeHighlight = false;

}

var timer = app.setInterval("app.disableHighlighting()",700);

-----

Basically, it disables field highlighting at an interval of 700 milliseconds (even if already disabled). That way, when someone presses the button, it will immediately get disabled... thus, button = useless :)

Hope it helps someone.