Smart App Error

Playing around with learning how to write some smart apps. For the first time I have tried doing mulitple pages for the preferences. I get an error when I go to the app to set the preferences. “state does not pass custom validation”. I tried coping the exact preference area in the Groovy docs and get the same error.

Any ideas on what is going on?

Never mind. Apparently if you add a page to the preferences you have to uninstall the app and reinstall it. Seems strange to me, but it worked.