Skip to main content

Notifications

Power Apps - AI Builder
Unanswered

Required Field in form

Posted on by 279
Hi
I'm creating  an app and I have a problem. I want that if in the field "Categorie" , the user choixe "Creation Article, Bom, Routing", the field "Reference concernee" is required. For that I put in the field "required" of "Reference concernee", the formula : 
 
If(Text("cr617_categorie") = "Creation Article, Bom, Routing"; true)
 
But it's not working there is no error and I donn't know why it's not working.
Can you help me pls ?
Categories:
Capture d’écran 2...
  • ED-03090921-0 Profile Picture
    ED-03090921-0 279 on at
    Required Field in form
    Because if I don't put the text() before, there is this error 
    "incompatible types for comparison. It is not possible to compare its types: OptionSetValue(Category(Table_Data_SAP_Workflow)), Text"
  • WarrenBelz Profile Picture
    WarrenBelz 140,719 on at
    Required Field in form
    Why do you need Text() when the value you are looking for is a string ?
  • ED-03090921-0 Profile Picture
    ED-03090921-0 279 on at
    Required Field in form
     
    I tried ur formula but I modified for it's working, so I have this 
     
    Text(ThisItem.cr617_categorie) = "Creation Article, Bom, Routing"
     
    But it's not working (no error)
  • WarrenBelz Profile Picture
    WarrenBelz 140,719 on at
    Required Field in form
    In the Required property of the 'Reference concernee' Data Card
    ThisItem.cr617_categorie = "Creation Article, Bom, Routing"
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Community Update Sept 16…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 140,719

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,355

Leaderboard