cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
asdeev Helper V
Helper V

Adding and removing multiple records icons in the forms (+) and (x)

I have a few textboxes in a datacard.

 

textinput1

textinput 2

textinput 3

.

.

.textinput n

 

what I did is that I added a (+) button next to my first textinput 1 and I set the onselect property to : UpdateContext({varShowText: true})

 

on second textput i set the visibile property to: varShowText

next to 2nd input I have a (+) and (x) button to add the next textinput and remove it.

 

on the + and x as well I have the visibile property to varShowText (because I want the textinpiut 2 to popup along with + and x button when the user clicks the (+) button of textinput 1).

 

the x of the second textputs onselect property is set to UpdateContext({varShowText: false})

and the + of second textinput on select propert is set to UpdateContext({varShowText1:true}) - which pops up the next textinput box. 

 

Everything is fine until here but 

 

Now,

 

the question is: when the user clicks the first (+) to add the second textinput, I want the (+) to disappear after the textinput 2 appears , the same way when the user clicks (+) to add the next textinput box the box should appear (which it does) but the previous (+) and (x) buttons should disappear and so on and so forth. Please see attached

 

I hope it makes sense.

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Adding and removing multiple records icons in the forms (+) and (x)

Hi @asdeev

You should be able to just add !varShowText in the visible property for the plus icon. The exclamation will inverse the value of varShowText and hide the icon if the value is true.

 

twitter: @dawidvh

youTube: https://www.youtube.com/channel/UCIMe_ErQZP5chbI9UyW0xLw

>>If you found this reply helpful, please mark this as the answer to close the topic and make it easier to find for other people with similar questions.<<

View solution in original post

1 REPLY 1
Highlighted
Super User
Super User

Re: Adding and removing multiple records icons in the forms (+) and (x)

Hi @asdeev

You should be able to just add !varShowText in the visible property for the plus icon. The exclamation will inverse the value of varShowText and hide the icon if the value is true.

 

twitter: @dawidvh

youTube: https://www.youtube.com/channel/UCIMe_ErQZP5chbI9UyW0xLw

>>If you found this reply helpful, please mark this as the answer to close the topic and make it easier to find for other people with similar questions.<<

View solution in original post

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,826)