Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Can I call JS from an event handler and access guideRootPanel?

Avatar

Avatar
Validate 1
Level 1
JoelLucuik
Level 1

Like

1 like

Total Posts

52 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
JoelLucuik
Level 1

Like

1 like

Total Posts

52 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
JoelLucuik
Level 1

05-02-2021

I want to debug more in JS. I created a searchClicked(guideRootPanel) function inside helper.js. It gets into it fine.

 

I want to access visibility:  guideRootPanel.matchPanel.useThisRadioButton.visible = false;

 

Is this advisable? I tried it earlier today and it deleted the radio button from the JCR while I was debugging.

(Unless I'm losing my mind)

 

Just checking. I don't need AEM forms pain.

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 10
Mayank_Gandhi
Level 10

Likes

279 likes

Total Posts

1,105 posts

Correct Reply

181 solutions
Top badges earned
Validate 1
Contributor 2
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 1
Level 10
Mayank_Gandhi
Level 10

Likes

279 likes

Total Posts

1,105 posts

Correct Reply

181 solutions
Top badges earned
Validate 1
Contributor 2
Ignite 5
Ignite 3
Ignite 10
View profile
Mayank_Gandhi
Level 10

06-02-2021

@JoelLucuik I don't get the idea behind ingesting script inside panel for debugging. You can simply use browser debugger and add a breakpoint for that unless there is some very specific use case you are trying to debug.