I am writing a FormsPub component that needs to use the FormAPI. Is there any way to include the <script></script> in the component, instead of the parent DCT? For example, the DCT would look like:
...
...
...
and in the component:
...
...component stuff
<script>
// FormAPI stuff
</script>
Doing this has resulted in some errors when trying to make a new form with the parent DCT, so I know this isn't the right way to do it. Just wondering if anything like this was possible, or if the <script> can only go in the parent DCT?