Forum Discussion
Richard__Harlan
Dec 01, 2011Historic F5 Account
Issuse with noyes and optional
Working on a new iApp based on f5.ip_forwarding iApp added new question that if answer yes it needs to display string text box. Could not get it working, took it to it simplest level made a new copy of the template and more one change a broke it again.
Original code
noyes forward_all
optional ( forward_all == "NO" ) {
string addr default "0.0.0.0" required validator "IpAddress"
string mask default "0.0.0.0" required validator "IpAddress"
string port default "0" required validator "PortNumber" display "small"
}
Changed code
noyes forward_all
optional ( forward_all == "YES" ) {
string addr default "0.0.0.0" required validator "IpAddress"
string mask default "0.0.0.0" required validator "IpAddress"
string port default "0" required validator "PortNumber" display "small"
}
Once the code change the foward_all to yes none of the other question show up even if the option is changed. Now it get weirder if I change it back to NO it still does not work till I create a new Template. Has anyone see this and have a work around to get this working? Thanks
2 Replies
- Brent_Blood_768Historic F5 AccountHey Richard,
Quick check: try changing the "YES" to "Yes" (and "NO" to "No") as the value of YES_ANSWER is "Yes" - and I'm pretty sure case matters for the expressions entered in optional elements.
"noyes" is defined in an apl script library as the following:define choice noyes default "No" display "small" {"No", "Yes"}
Cheers,
-Brent - Richard__HarlanHistoric F5 AccountBrent you got it. Thanks for the help
Richard.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects