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
- Brent_Blood_768Historic F5 AccountHey Richard,
define choice noyes default "No" display "small" {"No", "Yes"}
- Richard__HarlanHistoric F5 AccountBrent you got it. Thanks for the help
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