• 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: Removing Subject and Message field from department

Removing Subject and Message field from department 10 years 2 months ago #26434

I want to remove the message field and subject field form a certain department. How do I do this, I'm quite comfortable modifying source code.

Thanks
The administrator has disabled public write access.

Removing Subject and Message field from department 10 years 2 months ago #26454

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello,

The mentioned fields are mandatory by default, instead of removing them, you can try setting a default value and hide these through template overrides based on your department. More information on template overrides can be found here:

www.rsjoomla.com/support/documentation/v...plate-overrides.html

RSTickets!Pro file you will have to perform template overrides is located under this path:

\components\com_rsticketspro\views\submit\tmpl\default.php
This is not official customer support. To receive your support, submit a support ticket here.
The administrator has disabled public write access.

Removing Subject and Message field from department 9 years 1 week ago #31040

  • rakeshy
  • rakeshy's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 94
  • Thank you received: 3
Can't find any info about setting the default values for these fields.

All I can think of right now is going for setting it in the MySQL fields.

_rsticketspro_ticket_messages
Last Edit: 9 years 1 week ago by rakeshy.
The administrator has disabled public write access.

Removing Subject and Message field from department 9 years 1 week ago #31041

  • rakeshy
  • rakeshy's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 94
  • Thank you received: 3
Guess it's not that easy :(

Query error:
#1101 - BLOB/TEXT column 'message' can't have a default value
The administrator has disabled public write access.

Removing Subject and Message field from department 9 years 1 week ago #31042

  • rakeshy
  • rakeshy's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 94
  • Thank you received: 3
Managed to add default data, but it is not loaded when creating a new ticket.
The administrator has disabled public write access.

Removing Subject and Message field from department 9 years 1 week ago #31059

  • rakeshy
  • rakeshy's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 94
  • Thank you received: 3
With some help from RSjoomla support. I managed to get it to work this way:

in administrator\components\com_rsticketspro\models\forms\submit.xml I added some default text

<field name="message" type="rseditor" default="ANYTHING WILL DO" rows="12" cols="80" label="RST_TICKET_MESSAGE" description="RST_TICKET_MESSAGE_DESC" required="true" filter="JComponentHelper::filterText" width="70%" />

Created a com override Template>html>com_rsticketspro>submit>default.php
from the file components>com_rsticketspro>views>submit>tmpl>default.php

Changed
// message
 
	$label = $this->form->getLabel('message');
 
	$input = $this->form->getInput('message');
 
	$this->field->showField($label, '<div class="rst_editor">'.$input.'</div>');
to
// message
 
	$label = $this->form->getLabel('');
 
	$input = $this->form->getInput('message');
 
	$this->field->showField($label, '<div class="hidden">'.$input.'</div>');

Added this to my template.css
.hidden {
	visibility: hidden;
}

Other solutions that you know that work, are welcome.
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!