cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vinisha
Level: Power Up

how to add custom data card to form by using on select action

Hi,

 

I need to add custom data card or Text box key and value to the from by using ON SELECT OR ACTION using powerapps

1 ACCEPTED SOLUTION

Accepted Solutions
tchin-nin
Level 10

Re: how to add custom data card to form by using on select action

Ok so you select your Form and on the Properties tab, you click on Fields.

If the textinput you want to add is a property of your datasource (like a column in SharePoint) than you can select the field you want to make it appears in your form. If you want to add a custom textinput, Click on the ... and Add a custom card.

1542873240503.jpg

Within you card, you can insert a Label and a TextInput (or whatever control you want)

1542873532345.jpg

 

Then to show and hide this card, we need to change the Visible property of the card. And to do so on a click on a button, in PowerApps you need to set a variable. The value is going to be FALSE (so dont show my card), and when you click on the button we are going to set this value to TRUE (so the datacard is going appears)

1542873811185.jpg1542873752634.jpg

 

By default, the datacard is hidden, when you click on the button it is shown.

 

Hope it helps,

Théo

 

5 REPLIES 5
tchin-nin
Level 10

Re: how to add custom data card to form by using on select action

Hi @vinisha,

 

You need to add the datacard (containing textinput control + Label for the key), and then play on the Visible property of the datacard, so when the button is clicked (or whatever action), the datacard is shown.

 

DataCard.Visible : DCVisible
Button.OnSelect : UpdateContext({DCVisible : true})

 

Théo

vinisha
Level: Power Up

Re: how to add custom data card to form by using on select action

Hi,

 

Thanks,

But am very new to powerapps if possible can you pls send the screenshots

tchin-nin
Level 10

Re: how to add custom data card to form by using on select action

Ok so you select your Form and on the Properties tab, you click on Fields.

If the textinput you want to add is a property of your datasource (like a column in SharePoint) than you can select the field you want to make it appears in your form. If you want to add a custom textinput, Click on the ... and Add a custom card.

1542873240503.jpg

Within you card, you can insert a Label and a TextInput (or whatever control you want)

1542873532345.jpg

 

Then to show and hide this card, we need to change the Visible property of the card. And to do so on a click on a button, in PowerApps you need to set a variable. The value is going to be FALSE (so dont show my card), and when you click on the button we are going to set this value to TRUE (so the datacard is going appears)

1542873811185.jpg1542873752634.jpg

 

By default, the datacard is hidden, when you click on the button it is shown.

 

Hope it helps,

Théo

 

vinisha
Level: Power Up

Re: how to add custom data card to form by using on select action

Can we add textboxes dynamically in the form 

tchin-nin
Level 10

Re: how to add custom data card to form by using on select action

Well, you can't really add textboxes into a form dynamically, but you can use a Gallery to create what we call "Repetitive tables".

I suggest you to have a look on the very well explained @Shanescows videos : 

https://youtu.be/xgznk4XlPCo

 

Théo

 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 49 members 5,005 guests
Please welcome our newest community members: