Dynamically populate a form attribute in Designer

In Designer, I have am displaying a detail table. I had learned how to write a script to fill in a variable within an attribute on the fly… like the href in the statement below:

<td class=“data Compliance Code” style=“border-width: 0.25pt; border-style: solid;”>
    <a href=“123” target=“_blank”>@C2@</a></td>

with the script:

However, it isn’t working for the form attribute ‘action’ below:
<td class=“data ExtraData” style=“height: 40px; border-width: 0.25pt; border-style: solid;”>@E1@
    <form id=“form” enctype=“multipart/form-data” method=“POST” action=“123” target=“_blank”>
        <input id=“file” role=“pick-button” name=“thefile” onchange=“form.submit()” type=“file”>
    </form></td>

image

How can I get the “action” attribute to fill in dynamically from the script?

I found the answer.

Basically, I had the selector incorrect.
I used the selector: #form