• 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: Hiding fields

Hiding fields 14 years 1 month ago #10153

  • komita
  • komita's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 40
  • Thank you received: 1
I've looked at this a lot and can't figure out what I'm doing wrong. I used the documentation to set it up.

Here's my script:

<div class="componentheading">{global:formtitle}</div>
{error}
<table border="0">

<tr>
<td>{radio:caption}</td>
<td>{radio:body}<div class="formClr"></div>{radio:validation}</td>
<td>{radio:description}</td>
</tr>
<tr id="hide">
<td>{text1:caption}</td>
<td>{text1:body}<div class="formClr"></div>{text1:validation}</td>
<td>{text1:description}</td>
</tr>
<tr>
<td>{text2:caption}</td>
<td>{text2:body}<div class="formClr"></div>{text2:validation}</td>
<td>{text2:description}</td>
</tr>
<tr>
<td>{submit:caption}</td>
<td>{submit:body}<div class="formClr"></div>{submit:validation}</td>
<td>{submit:description}</td>
</tr>
</table>
<script type="text/javascript">
function displayField()
{
if(document.getElementsByName('form[Radio]')[0].checked)
document.getElementById('hide').style.display="none";

if(document.getElementsByName('form[Radio]')[1].checked)
document.getElementById('hide').style.display="";
}
</script>

I have the onclick="displayField();" in additional attribues of the radio button.

Thanks for any help.
The administrator has disabled public write access.

Re:Hiding fields 14 years 1 month ago #10158

  • andreic
  • andreic's Avatar
  • NOW ONLINE
  • RSJoomla! Official Staff
  • Posts: 733
  • Thank you received: 60
Hello,

Please try to replace
if(document.getElementsByName('form[Radio]'[0].checked)

with
if(document.getElementsByName('form[radio]'[0].checked)

..in your script and test the form again.
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.

Re:Hiding fields 14 years 1 month ago #10171

Hi,

I am also not able to change my form, although the code I added to my form is OK.
Then I saw {error} at the top of the form.
I don´t know why it´s there, but maybe that´s reason why I can´t change my form.
And I do see the same `{error}` in your form.
I am now searching the forums to seek for a solution.

Ries
The administrator has disabled public write access.

Re:Hiding fields 14 years 1 month ago #10174

This is the answer I got regarding to {error}

"The {error} is a placeholder that defines where the error message will be displayed in your form when a validation fails. You can change the error message by going to Components > RSform!Pro > Manage forms > select your form > Edit form and clicking the "Edit the error message" button."

So, no solution to our problem so far.

Ries
The administrator has disabled public write access.

Re:Hiding fields 14 years 1 month ago #10181

  • andreic
  • andreic's Avatar
  • NOW ONLINE
  • RSJoomla! Official Staff
  • Posts: 733
  • Thank you received: 60
Hello,

The {error} placeholder is used to determine the place in your form where the error message will be displayed. You can even edit the error message by going to Components > RSForm!Pro > Manage forms > select your form > Edit form and clicking the "Edit error message" button.
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.

Re:solved -- Hiding fields 14 years 1 month ago #10183

  • komita
  • komita's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 40
  • Thank you received: 1
thank, the upper case R to lower case seemed to do the trick.
The administrator has disabled public write access.
  • 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!