• 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: Show and hide fields, problem with fields required

Show and hide fields, problem with fields required 12 years 10 months ago #17608

Hello,
I try to hide fields in a Formular with RSForm Pro.
I use this script: http://www.rsjoomla.com/support/documentation/view-article/93-show-or-hide-fields.html
Unfortunately, I do not know how I make the displayed fields are required.
How do I change this script so I have more fields than one as required?
<script type="text/javascript">
function validateField()
{
if(document.getElementById('hide').style.display=="" && document.getElementById('Textbox').value=="")
{
document.getElementById('component150').className = 'formError';
return false;
}
else
{
document.getElementById('component150').className = 'formNoError';
return true;
}
}
</script>
Hope you can help me.

Best Regards,
Oliver
Germany

(Sorry for my bad English :) )
The administrator has disabled public write access.

Re: Show and hide fields, problem with fields required 12 years 10 months ago #17610

  • matt
  • matt's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 136
  • Thank you received: 14
Why don't you use conditional fields which were introduced in rev 43, http://www.rsjoomla.com/blog/view/171-show-hide-a-field-in-rsform-pro.html

Just remember to make a version for your own language if it's not English (I missed it first).

Matt
The administrator has disabled public write access.
The following user(s) said Thank You: soulreaver

Re: Show and hide fields, problem with fields required 12 years 10 months ago #17611

Many thanks you for your reply. This feature I had not yet seen, but it's exactly what I need. Great! :)
The administrator has disabled public write access.

Re: Show and hide fields, problem with fields required 12 years 10 months ago #17821

Hello,

In RSForm!Pro revision 43 you don't need Javascript to show/hide fields.
Just use the conditional fields function.
Regards
Wilco Alsemgeest

Please note: my help is not official customer support. To receive your support, submit a ticket by clicking www.rsjoomla.com/my-support-tickets.html
The administrator has disabled public write access.

Re: Show and hide fields, problem with fields required 12 years 9 months ago #18053

wilco.alsemgeest wrote:
Hello,

In RSForm!Pro revision 43 you don't need Javascript to show/hide fields.
Just use the conditional fields function.

This is just what I need and works with standard radio buttons. I'm trying to design a form where the radio options are images rather than text, which works great except when trying to use the conditional fields (the conditional field function no longer works)

Does anyone have any clues as to how I might get this working

Thanks!
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!