Hi, how can i add error message with the condition below:
1) Upon clicking "+" icon,
2) Upon clicking Submit button,
Thank you!!
@JS-JS
On the + icon. Set the following formula:
If(!Isblank(Textinput.Text) And !IsBlank(comboBox.selectedItems), <Do your patch to datatable>;Set(varValidateAddInput,false),Set(varValidateAddInput,true))
Then on your text input controls bordercolor add the following formula If(Isblank(Self.Text) And varValidateAddInput,Red,Gray)
On comboBox/dropdown input controls add the following formula If(Isblank(Self.SelecectedItems) And varValidateAddInput,Red,Gray)
On your submit button you could just do. If(IsEmpty(<Datasource from datatable>),Set(varValidateSubmit,true),<Patch changes>;Set(varValidateSubmit,false))
on the error message beneath datatable set its visibility to:
varValidateSubmit
Do the same thing for the bordercolor of datatable as you did for input controls with varValidateSubmit variable
If this helped you resolved your answer please mark this answers as a solution.
Best Regards,
Anthony