cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (11,374)