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 II
Super User II

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 II
Super User II

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (7,745)