cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dhubach1
Frequent Visitor

Default text value data card based on form

Hey all.

 

I am trying to default and hide a text data card value based only when its based on a certain form.

 

Example - I have 3 forms all connected to the same list (new, modify, extend). I am trying to default the "contractor business name" data card to read "New Contract Request" when the user selects the "newrecform" (New contract request) and then make it not visible for users to change. I am thinking some kind of IF statement but having trouble. Open to any ideas.

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @Dhubach1 ,

If you have a dedicated new form, this should be easy - make the Default of the Text box "New Contract Request" and the DisplayMode of the Text box DisplayMode.View

 

Please click Accept as solution 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 Thumbs Up.

Visit my blog Practical Power Apps

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @Dhubach1 ,

If you have a dedicated new form, this should be easy - make the Default of the Text box "New Contract Request" and the DisplayMode of the Text box DisplayMode.View

 

Please click Accept as solution 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 Thumbs Up.

Visit my blog Practical Power Apps

Dhubach1
Frequent Visitor

Perfect. Thank you very much! The code reads like this if anyone else is looking 

 

If(NewRecForm.Mode = New, "New contract request", Parent.default) 

 

Then hide the visibility

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Users online (3,181)