# RE: form remote tag :before=\> function problem

**URL:** <https://www.ruby-forum.com/t/re-form-remote-tag-before-function-problem/188249>\
**Category:** Rails\
**Created:** [May 8, 2010, 11:20am UTC](https://www.ruby-forum.com/t/re-form-remote-tag-before-function-problem/188249 "2010-05-08T11:20:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fattah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/7cd45c/32.png) [@Fattah](https://www.ruby-forum.com/u/Fattah)\
**Post date:** [May 8, 2010, 11:20am UTC](https://www.ruby-forum.com/t/re-form-remote-tag-before-function-problem/188249/1 "2010-05-08T11:20:27Z")

</div>

Dont use return. If you have something to validate before ajax call then  
do it using :condition option.

Moving the hello js call in :condition option should solve your problem.
