This discussion is archived
2 Replies Latest reply: Nov 27, 2012 4:12 PM by 956009 RSS

Create an "add one more input field" button

956009 Newbie
Currently Being Moderated
My application is kind of like this:

The users create friend groups, there is just one table that has columns: group_id, person_name, person_email.

I know that I can just build a generic form base on a report table where the users can click on the "create" button to add one more row into the table. So if Group 300 has 4 people, the user has to click "create" 4 times.

However, I'm wondering if it's possible to have a faster way to create a group in APEX, where inside the create page it looks like:


########################

Group Id: _____

Name: ________
Email: _________

( + )

########################

where if the user clicks on the "( + )" button, another Name/Email pair comes up like this:

########################

Group Id: _____

Name: ________
Email: _________

Name: ________
Email: _________

( + )

########################

If it's possible, how?

Thanks!
  • 1. Re: Create an "add one more input field" button
    714270 Pro
    Currently Being Moderated
    You can use tabular form for this.
  • 2. Re: Create an "add one more input field" button
    956009 Newbie
    Currently Being Moderated
    NB:

    Instructions to set a default value of a hidden column for newly added rows, since I was having some trouble doing it.
    In this example, we'll set "Column_Foo" to P0_DEFAULT_VALUE

    1. Double click on Column_Foo to see its attributes

    2. Display As: "Hidden"
    Don't pick any of the "Display As Text" or else that column is not editable

    3. Default Type: "Item (application or page item name)"

    4. Default: "P0_DEFAULT_VALUE"
    !!! Note this is NOT ":P0_DEFAULT_VALUE", NOR "&P0_DEFAULT_VALUE.", but just simply the name

    5. Reference Table Owner, Reference Table Name, Reference Column Name should be set just like the other text field columns.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points