locked
How to remove populated controls from SettingsFlyout

    Question

  • Hi

    I'm using a SettingsFlyout where I've populated a control. In my javascript, I want to remove the control when a specific new page has been loaden. How can I remove or delete the populated control?

    Thank you.

    Monday, March 12, 2012 2:51 PM

Answers

  • You want to make it so that when a user goes to a certain page they can no longer displays a certain setting? Does this work for you?

    var mySetting = document.getElementById("mySetting"); mySetting.style.display = "none";

    // TODO: flip it back to block if you want to show it again.

    • Marked as answer by hssint Tuesday, March 13, 2012 8:35 AM
    Monday, March 12, 2012 5:50 PM

All replies

  • You want to make it so that when a user goes to a certain page they can no longer displays a certain setting? Does this work for you?

    var mySetting = document.getElementById("mySetting"); mySetting.style.display = "none";

    // TODO: flip it back to block if you want to show it again.

    • Marked as answer by hssint Tuesday, March 13, 2012 8:35 AM
    Monday, March 12, 2012 5:50 PM
  • You want to make it so that when a user goes to a certain page they can no longer displays a certain setting? Does this work for you?

    var mySetting = document.getElementById("mySetting"); mySetting.style.display = "none";

    // TODO: flip it back to block if you want to show it again.

    Yes That's it. Pretty easy actually.

    Thank you.

    Tuesday, March 13, 2012 8:35 AM