• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Embedding Form In Article Causing Error

Embedding Form In Article Causing Error 9 years 2 months ago #34406

I embedded a form into an article, but when I do that I get the following error:
This email address is being protected from spambots. You need JavaScript enabled to view it.') this.value='';" onblur="if (this.value=='') this.value=' This e-mail address is being protected from spambots. You need JavaScript enabled to view it ';" class="rsform-input-box" />

The error only shows up when embedding this form, when using the form standalone I do not get the error.

Going to the textbox in the form I have this code in the additional attributes:
onfocus="if (this.value=='somebody@example.com') this.value='';"
onblur="if (this.value=='') this.value='somebody@example.com';"

The form that this error occurs in is a form that I built awhile ago on my J2.5 site that I torn down to the basics, (name, email, phone, address) and am currently rebuilding it. So I don't even remember what the purpose of the code was.

I tried doing a search here as a lot of my modifications come from other users having the same problem or feature request as I do, but I can not find it anywhere in the forums.

Do I really need this code with all the new functionality that RSForm has compared to the previous version on J2.5?
Last Edit: 9 years 1 month ago by hayabusa hitsugaya.
The administrator has disabled public write access.

Embedding Form IN Article Causing Error 9 years 1 month ago #34482

Okay so this is not just a one time thing.

I built a new form from scratch and all my fields display properly except the email field. I add a php code from a tutorial to display variables that I found here.

www.rsjoomla.com/support/documentation/r...n-form-is-shown.html

The code I used is
//<code>
$user = JFactory::getUser();
return $user->get('email');
//</code>

Following the instructions I placed it in the default value box, when the form is not embedded into an article everything shows fine, but when I embed the form I get the error I did in my first post.

Has anyone else had this problem before I submit a support ticket?
The administrator has disabled public write access.

Embedding Form IN Article Causing Error 9 years 1 month ago #34492

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
The following user(s) said Thank You: hayabusa hitsugaya
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!