# Activescaffold forms and \<script\> tag

**URL:** <https://www.ruby-forum.com/t/activescaffold-forms-and-script-tag/114255>\
**Category:** Rails\
**Created:** [September 10, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/activescaffold-forms-and-script-tag/114255 "2007-09-10T16:40:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brunopreis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/97f17d/32.png) [@brunopreis](https://www.ruby-forum.com/u/brunopreis)\
**Post date:** [September 10, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/activescaffold-forms-and-script-tag/114255/1 "2007-09-10T16:40:40Z")

</div>

Hi,

I want to put an tag on an activescaffold form. The docs say  
I can use a helper or a form overhide… but when I put a tag  
in one of those, it gets stripped. I think it’s some security stuff.  
But I need to trigger an action when the form is loaded to adjust some  
presentation logic. How can I put the script tag into my form?

Thks,

Bruno R.

---

<div class="post-metadata">

**Author:** ![brunopreis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/97f17d/32.png) [@brunopreis](https://www.ruby-forum.com/u/brunopreis)\
**Post date:** [September 10, 2007, 5:10pm UTC](https://www.ruby-forum.com/t/activescaffold-forms-and-script-tag/114255/2 "2007-09-10T17:10:49Z")

</div>

I foud the answer:

[http://prototypejs.org/api/ajax/updater](http://prototypejs.org/api/ajax/updater)

About evalScripts and defining functions
