crazyflx 22 Posted December 21, 2009 Report Share Posted December 21, 2009 Alright, I'm trying to create user inputs that only appear if certain things are done/checked/filled in. For instance, I created a sub called "enable pop3", and in that sub, the command is "UI Check Box > (name: Enable POP3)" Now, I wanted to create a qualifier to run that sub (and therefore only create that UI element) only if a certain site is selected to create accounts at. But even though I created that "UI Check Box" in a sub that my script ISN'T calling, the check box appears anyway. Any ideas? Quote Link to post Share on other sites
Aaron Nimocks 19 Posted December 21, 2009 Report Share Posted December 21, 2009 Try the refresh button or close it and reopen to see if it still is in the UI. Quote Link to post Share on other sites
Guest Jim Posted December 21, 2009 Report Share Posted December 21, 2009 Alright, I'm trying to create user inputs that only appear if certain things are done/checked/filled in. For instance, I created a sub called "enable pop3", and in that sub, the command is "UI Check Box > (name: Enable POP3)" Now, I wanted to create a qualifier to run that sub (and therefore only create that UI element) only if a certain site is selected to create accounts at. But even though I created that "UI Check Box" in a sub that my script ISN'T calling, the check box appears anyway. Any ideas?I don't think Ubot is currently designed to support 'on-the-fly' UI element creation. All UI element nodes are processed when the script loads, not when it's executed, so that's why its showing up regardless of whether or not the sub was called. Quote Link to post Share on other sites
crazyflx 22 Posted December 21, 2009 Author Report Share Posted December 21, 2009 Thanks guys, I guess that is the issue. No matter where I store UI creation elements, they always appear immediately. I guess I now have a feature request to make. Quote Link to post Share on other sites
Aaron Nimocks 19 Posted December 21, 2009 Report Share Posted December 21, 2009 Thanks guys, I guess that is the issue. No matter where I store UI creation elements, they always appear immediately. I guess I now have a feature request to make. Didn't test this. But maybe try to put the code into another file and include that file which loads the UI based on your parameters. Quote Link to post Share on other sites
crazyflx 22 Posted December 21, 2009 Author Report Share Posted December 21, 2009 Didn't test this. But maybe try to put the code into another file and include that file which loads the UI based on your parameters. Huh, thanks for that idea, I'll give that a go now and let you know. Quote Link to post Share on other sites
crazyflx 22 Posted December 21, 2009 Author Report Share Posted December 21, 2009 Alright, if I understood your idea correctly, that doesn't work either. Although, it gave me another idea to "clean up" my UI a bit. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.