Hi All,
I have a list which I have customized on powerapp form.
1. I have a comment filed which I had rename in data card as "txtApproverComment".
2. I have a choice field called "Status" which is on the form but visible property is false. which has values:- Approved, Rejected, Initiated
3. I have a button called "Reject'.
Now what I want if I click the button 'Reject' then it should first check if "txtApproverComment" is empty then set "txtApproverComment" border red and nothing should happen. But if "txtApproverComment" is not empty then
set "Status" choice field as "Rejected" and form should save. Below is my code "OnSelect" property of Reject button.
If(IsBlank(txtApproverComment), txtApproverComment.BorderColor = Red);
If(!IsBlank(txtApproverComment), ddlStatus.selected.value = 'Rejected'; SubmitForm(EditForm))
but it is not working. txtApproverComment.BorderColor = Red -> not working
ddlStatus.selected.value = 'Rejected' -> not working
Please help some one.
Thank you so much !