The CreatorCon Call for Content is officially open! Get started here.

Create a script to add a field to a form design

dustinhux
Kilo Contributor

I am currently trying to add a field to a form design programatically.   I have already declared a column on the Base Configuration Item (cmdb) table and am now trying to find out how to add that field to children of that table programatically.   I am already able to go into each child's form design and and drag the field in because I have already added it as a column on the base table but I would like to know how to write a script that places a field in a form design so that I can do it for multiple children and fields.  

1 REPLY 1

rlatorre
Kilo Sage

Well you would have to create records in the Section Element (sys_ui_element) table. You would need to know the Form Section (sys_ui_section) the element should be on and the Form (sys_ui_form) that section is on.



I'm not sure how you would know the desired position of the element on multiple forms.