# Making duplicate/similar components through a script

**URL:** <https://forum.inductiveautomation.com/t/making-duplicate-similar-components-through-a-script/105821>\
**Category:** Ignition\
**Tags:** scripting, perspective\
**Created:** [May 2, 2025, 1:36pm UTC](https://forum.inductiveautomation.com/t/making-duplicate-similar-components-through-a-script/105821 "2025-05-02T13:36:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheIntern](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/theintern/32/75418_2.png) [@TheIntern](https://forum.inductiveautomation.com/u/TheIntern)\
**Post date:** [May 2, 2025, 1:36pm UTC](https://forum.inductiveautomation.com/t/making-duplicate-similar-components-through-a-script/105821/1 "2025-05-02T13:36:37Z")

</div>

I am working on a map that has buttons that will lead to a simple form (aka view with text, checkboxes, and submit button), and I would to be able to create new "forms" from another view. So basically type a few things in some text entry's on a view, then press a button and it will insert that data into a table, AND create a new button on a separate view that is similar to the other ones on the map. What is the best way I can go about automating the process for adding new buttons.

My implementation right now is to have all buttons be the same but they have a parameter when they are made which fetches the form data from the table according to a parameter, and populates text on the form. So I would essentially need to have an action script that duplicates the buttons but changes one parameter, as well as the X and Y position. Is this possible to do in Ignition Perspective?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 2, 2025, 3:45pm UTC](https://forum.inductiveautomation.com/t/making-duplicate-similar-components-through-a-script/105821/2 "2025-05-02T15:45:12Z")

</div>

Not at runtime, generally. Use the view canvas and manipulate the data you feed it.
