Global variables:
Set( globVar, Blank()); // default any value
If(isVal, Set(isVal, false), Set(isVal,true))
better
Set(isVal, !isVal)
Set( RunningTotal, RunningTotal + TextInput1 ) // initialize and set
Set( RunningTotal, 0 ) // reset
—————————————————–
Context Variables (Local Variables)
UpdateContext( { locVar1: 0 , locVar2: 0 , } )
—————————————————
Pass Variables to next Screen
Navigate(Screen2, ScreenTransition.Cover,{newVar: locVar})
—————————————————–
Preset the value of an input box
- set a global variable on app or screen visible:
Set(varCurrencyVal, Blank()); - on Curr1_val textbox Default:
If(IsBlank(varCurrencyVal),Parent.Default,varCurrencyVal) - OnSave
If(
IsBlank(Curr1_val.Text),
Set(varCurrencyVal, 0);
SubmitForm(EditForm1)
)
to reset:
Reset(TextInput1)