• 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: Setting checkboxes enabled by default

Setting checkboxes enabled by default 9 years 7 months ago #28849

So I have tried multiple ways to enable certain checkboxes in the event creation page. None have worked thus far.

Some stuff I have tried
<script type="text/javascript">
document.getElementById('rs_comments').checked = true;
document.getElementById('rs_check_registration').checked = true;
document.getElementById('show_registered').checked = true;
document.getElementById('automatically_approve').checked = true;
</script>

<script>
function setCheck() {
document.getElementById("rs_comments").defaultChecked;
document.getElementById("rs_check_registration").defaultChecked;
document.getElementById("show_registered").defaultChecked;
document.getElementById("automatically_approve").defaultChecked;
}
</script>

also setting them to checked.

removing some classes rs-display-none

and still no idea.

Any help would be greatly appreciated!
The administrator has disabled public write access.

Setting checkboxes enabled by default 9 years 5 months ago #29285

HI,
I have the same problem, can someone help us please?
Regards
The administrator has disabled public write access.

Setting checkboxes enabled by default 9 years 5 months ago #29292

  • silviup
  • silviup's Avatar
  • OFFLINE
  • Moderator
  • Posts: 309
  • Thank you received: 49
Try something similar to:

<script type="text/javascript">
window.onload=function setCheck() {
document.getElementById("rs_check_registration").checked=true;
}
</script>

You'll need to to adapt the code for the rest of the fields and add this in the following file:

/components/com_rseventspro/views/rseventspro/tmpl/edit.php

To make sure you don't lose these modifications upon future updates, you can create a template override for the file mentioned above, the process is explained here:

www.rsjoomla.com/support/documentation/v...s-look-and-feel.html

Note that you can find some default options for the event creation form in Components >> RSEvents!Pro >> Groups >> edit a group >> Event options, you can read more on this topic here:

www.rsjoomla.com/support/documentation/v...icle/688-groups.html
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.
  • 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!