Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Adding loop to render form elements runtime in ui page html

IamAmolB
Tera Guru

Hi Experts,

Do anyone have any idea about, how can i add repeated form elements via loop

I have created ui page on that one reference field i want to be created runtime, anyone have any idea how can i do that?

Regards,

Amol Bavaskar

5 REPLIES 5

Hi Mrudula,



I am not getting how can i compare in while condition like i did



<j2:while test="${jvar_row_no} ${AMP}lt; 3">


    <p> ${i} </p>


<tr>


<td nowrap="true">


<g:ui_reference name="assignment_group0" id="assignment_group0" table="u_rc_assignment_group_mapping" value="" onchange="checkAsignee(0)"/>



</td>


<td nowrap="true">


      <select id="assign_to0" name="assign_to0">


<option value="">---Select---</option>


</select>


</td>


      <td nowrap="true">


  <input name="notes0" id="notes0" value=" " />


</td>


</tr>



<j:set var="i" value="i+1"/>



        </j2:while>            



but however it is not working