How can I set field to 'required' using rules?
Very simple case: I have sharepoint list on which I build submit form. I want the field "Date" to be required when another field "Deadline" (list type) is set to "Yes".
I set condition with field's "Deadline" value set to "Yes", but when I want to setup an action, Required property is greyed out
Solved! Go to Solution.
Hi @fzer0 ,
Do you want to when field of deadline is filled “Yes”, the field of date need to be required?
The property of the datacard is grey before you unlock the datacard,so if you want to add condition for the property ,you need to unlock the datacard firstly.
Unlock datacard:
Date_DataCard3: If(DataCardValue11.Selected.Value ="Yes",true,false)
Result test:
Hope this can be helpful.
Best Regard.
Yumia
Hi @fzer0 ,
Do you want to when field of deadline is filled “Yes”, the field of date need to be required?
The property of the datacard is grey before you unlock the datacard,so if you want to add condition for the property ,you need to unlock the datacard firstly.
Unlock datacard:
Date_DataCard3: If(DataCardValue11.Selected.Value ="Yes",true,false)
Result test:
Hope this can be helpful.
Best Regard.
Yumia
Thanks, it works:).
However, it does not work when you use "Rules", it has to be put as formula (as it is in your example).
I recently posted a short tutorial on the subject of using Rules in PowerApps for data validation. I think it may be useful for you.
Hi Yumia @v-yuxima-msft ,
I also tried your recommended solution and its not working. The issue with the formula in powerapps seems to be the Selected.Value ="Yes" part.
I am trying to make a field required based on another field and not having any success.
If('Is this PO for a Vendor or Subcontractor?'.Selected.Value = "Vendor",true,false)
Is this PO for a Vendor or Subcontractor?: the data card of previous field
Vendor: the selection of the data card identified above.
Attached the screenshot.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
202 | |
98 | |
60 | |
57 | |
52 |
User | Count |
---|---|
257 | |
161 | |
87 | |
79 | |
68 |