We could use additionalScope to do something similar.
Here is a TLDR:
Js call Retool RPC with arguements - #5 by Paulo
On submit, we could run a script to trigger this query, using an if
statement that evaluates if there was a value.
Something like:
let val = numberInput.value
if( val ){
queryName.trigger({
additionalScope: {
number: val
}
})
} else {
queryName.trigger({
additionalScope: {
number: ""
}
})
}