add a new row to the html table dynamically

manapt
Kilo Contributor

I want to add a row to the table in UI page when I click on button Add row. This table has two cells 1. checkbox and other a reference field to user table. I am trying to write a code in client script of the UI page but dont know how to create a reference field each time the button is clicked. Can anyone help?

5 REPLIES 5

adiddigi
Tera Guru

Dynamic Reference fields

This should be a good starting point.


manapt
Kilo Contributor

Thanks, I actually took the part of code posted at the end of this thread and used in my script. Now I am able to add row and enter the reference fields but It is not cloning. When I click on Request button at the end to do the clone. It is not cloning. Can you please tell me what should I do to have cloning done for the rows I am adding using the client script.


Hi adiddigi,



I have checked your thread. but when i click on my "Add" button it is not creating reference field.


i am able to generate dynamic field but it's only creating text type of field



Can you please guide me?



SimonMorris ctomasi goranlundqvist




Thanks,


Harshvardhan


My first question would be.. Do this need to be in a UI Page? Since I would totally recommend building this as a Service Portal page instead with a widget.



//Göran