• 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: Is there a solution to get page content

Is there a solution to get page content 7 years 5 months ago #37557

  • scheuer
  • scheuer's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Hello i need help for this queston:

I' using Rsforms as an simple form for event ticket-reservation. That works fine for me until now.
At the moment I am using the following script to get the page title in rsforms
<script type="text/javascript">
jQuery( document ).ready(function() {
jQuery('#Veranstaltung').val(document.title);
});
</script>
It's OK,
but...the page titles are sometimes really long (event-title + date, + price)
so it is looking not so fine in the frontends view.

Is there a solution to get page content for example like a special header (for example h3) or a <p> or a <div> send via rsforms? Maybe as an php script?


Here a supplement to the question above:

My html Code: <p id="test">

- the form is embedded into the site
- the forrm got a hidden field with the name "event"

This is the javascript i tried:

<script type="text/javascript">
jQuery( document ).ready(function() {
jQuery('#event') .load $("#test");
});
</script>

and i tried this too:
<script type="text/javascript">
jQuery( document ).ready(function() {
jQuery('#event') $("#test").val();
});
</script>


...what i'm doing wrong...can you help me please?


Many thanks
Cheers Frank
Last Edit: 7 years 5 months ago by scheuer.
The administrator has disabled public write access.

Is there a solution to get page content 7 years 5 months ago #37572

  • scheuer
  • scheuer's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
I've added this java-sript into the free-text field

<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#event').val( $("#test").html() );
});
</script>

then i've added this {event:caption}: {event:value} to my Mail to admin section...i see nothing happens. I can see only a ":"
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!