I’m trying to write a multi-page SmartApp where an href takes me to a new page with field forms. I can get the page to load if I use the following format:
def setupMainPage(){
...
href "setupUbiPage", title: "Ubi Uterrance Setup", description: "Tap to open"
}
def setupUbiPage() {
...
}
However, if i try and use a variable for the href parameters, the setupUbiPage page won’t load.
def setupMainPage(){
...
inputUbiPage = [
name: "setupUbiPage",
title: "Ubi Uterrance Setup",
description: "Tap to open"
]
href inputUbiPage
}
def setupUbiPage() {
...
}
I’ve tried using both name
and url
(which is referenced here) but they both don’t seem to work. What is the name of the parameter that I need to use?