Default value for input text in SmartApps


(Danroot) #1

I’d like to be able to specify a default value, like this:
input “rainColor”, “text”, title:“Rain”, defaultValue:’#0000ff
I don’t see anything like this in documentation, but thought I’d check to see if it is possible.

Alternatively, is there a color picker input type?


(Steve) #2

That is exactly how you specify default values. Have you tried it?

There isn’t a color picker input type, but I imagine there will be at some point.


(Danroot) #3

Well, so it is. When it didn’t work in the simulator, I assumed it wouldn’t on the phone. sigh. Thanks for letting me know.

+1 vote for a color picker. I have a pretty sweet app going here, and want users to be able to pick any color, but not make them know html color codes.