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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,088)