Christian Ohm
Hi Everyone.
I am having an issue with the Spark modal section. I want the modal to be hidden by default and when a profile button is clicked it should appear. I have the following code in the coach view onload event:
thisView = this;
var modal =thisView.ui.get(“Modal_Section1”);
modal.setVisible(false)
And in the button onclick event I have ${Modal_Section1}.setVisible(true)
That is all great. However, when the page loads the modal briefly shows then it hides. What is that about?
SPARK Support
Hey Christian,
This is a known behavior for this control. A work-around is to set the visibility configuration of the control to “none,” and then on showing the modal you can set the visibility to “visible”.
Thanks,
Elliot P.