Hi,
how can i disable the required body text function?
Can i do this in sysconfig with all body text, or do i have to change the code on each page ?
<textarea id="RichText" name="Body" title="Message body" rows="15" cols="$Config{"Ticket::Frontend::TextAreaNote"}" class="RichText Validate_Required $QData{"BodyInvalid"}">$Data{"Body"}</textarea>
thanx
Required body text
Moderator: crythias
Required body text
OTRS 4.0 running on Centos 7
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Required body text
Adjust in SysConfig for the type of entry (Note?) you're wanting to change.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Re: Required body text
Could you please explain a little bit more how to achieve that? I'm trying to have my body text in the customer interface not required too, maybe remove it.crythias wrote:Adjust in SysConfig for the type of entry (Note?) you're wanting to change.
Or if it's possible to modify the class "RichText DontPrint Validate_RequiredRichText $QData{"RichTextInvalid"}" so that the rich text is not required.
Thanks a lot.
Rafa
OTRS 3.0.11 and KIX4OTRS on Linux
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Required body text
That isn't likely.rafaqf wrote: I'm trying to have my body text in the customer interface not required too, maybe remove it.
Change the input/textarea code in CustomerTicketMessage.dtl to <input type=hidden value="." name="Body" >
You'll probably want to remove all of this for what you want. ...
Code: Select all
<div class="RichTextHolder">
<label for="RichText" class="Mandatory">
<span class="Marker">*</span>
$Text{"Text"}:
</label>
<div class="Clear"></div>
<!-- dtl:block:RichText -->
$Include{"CustomerRichTextEditor"}
<!-- dtl:block:RichText -->
<textarea id="RichText" class="RichText Validate_Required $QData{"BodyInvalid"}" name="Body" rows="15" cols="$Config{"Ticket::Frontend::TextAreaNote"}">$QData{"Body"}</textarea>
<div id="RichTextError" class="TooltipErrorMessage" ><p>$Text{"This field is required."}</p></div>
<div id="RichTextServerError" class="TooltipErrorMessage NoJavaScriptMessage$QData{"BodyInvalid"}" ><p>$Text{"This field is required."}</p></div>
<div class="Clear"></div>
</div>
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask