web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / how to put an add icon...
Power Apps
Unanswered

how to put an add icon in a form

(0) ShareShare
ReportReport
Posted on by 2

Hi, 

 

I would like to insert an add icon on the right of the first row that when I click on the second line appears, so in case I don't click on that add icon, second row won't be visible. is it possible to do in a form? which are the functions to use? 

 

edin_0-1626977859844.png

 

thanks! 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @edin 

    A form deals with a single record.  What you are referring to is adding new records - which would not relate to a single form record.  

    The big question is, are each of these line in your form representing totally different columns or are you storing (planning to) the line items in a separate child list?

  • edin Profile Picture
    2 on at

    Hi, each field represent a column in a sharepoint list. so, it depends on the type of request the lines you need. let's say there are 30 columns in the sharepoint list. at the beginning will only appear 10, and if the user needs more lines will select the add icon to have an extra line. if the user doesn't need more than 10 he will not see the rest of the columns created. 

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @edin 

    Yes, this would normally be done in a separate list so that you don't have a lot of columns in the record and you are not restricted to lines (30 in this case).

     

    So, what you will need to do is to use a checkbox/icon in your form on each row.  I say checkbox/icon because it provides a state for your icon.  How to go about it is this:

    1) Add your + icon in a custom datacard to the right of your row.

    2) Add a checkbox control on top of the icon (for the first row, let's call it chkRow1).

       a) set the Text property to nothing ""

       b) set the Checkbox size to 0

       c) set the FocusedBorderThickness to 0

     

    You will want to hide these once data is entered.  So, set the Visible property of the Checkbox (chkRow1) to :

       IsBlank(yourRow2Combobox.Selected.columnShown) && IsBlank(yourRow2TotalAmountUSD.Text) && IsBlank(yourRow2TotalAmountARS.Text) && IsBlank(yourRow2ExRate.Text)

    Replace all the control names above with yours for the second row.

     

    Now, set the Visible property of the plus icon to chkRow1.Visible

     

    Finally, for each datacard in Row 2, set the Visible property to : chkRow1.Value

     

    Repeat this process for each row in your form replacing the names and values to reflect the next row (row 3, 4, etc.)

  • Wenchun Profile Picture
    2 on at

    Is this work for a sharepoint list?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard