• 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: RSForm Preview data - JavaScript help.

RSForm Preview data - JavaScript help. 6 years 3 weeks ago #39013

I wonder if this community could help me with the JavaScript for my "Review" page. I am looking for help with the 'if' statement. The preview is working, but I'm looking to hide the preview field unless data has been entered. I appreciate anyone who can help.

Here is what I have so far...

<script type="text/javascript">
function previewBeforeSubmit(formIdValue, previewPageNumber, totalPages, validateOnChangingPage)
{
if (previewPageNumber == 1 && totalPages == 1)
{

document.getElementById('horsenamePreview').innerHTML = document.getElementById('horsename').value;
document.getElementById('ownerPreview').innerHTML = document.getElementById('owner').value;


document.getElementById('name1Preview').innerHTML = document.getElementById('name1').value;
document.getElementById('payment-3371Preview').innerHTML = document.getElementById('payment-3371').value;

}
rsfp_changePage(formIdValue, previewPageNumber, totalPages, validateOnChangingPage);
}
</script>

Thank you
Chris
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!