Required body text

Moderator: crythias

Locked
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

Required body text

Post by spiderpig »

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
OTRS 4.0 running on Centos 7
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Required body text

Post by crythias »

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
rafaqf
Znuny newbie
Posts: 80
Joined: 30 Mar 2011, 11:10
Znuny Version: 3

Re: Required body text

Post by rafaqf »

crythias wrote:Adjust in SysConfig for the type of entry (Note?) you're wanting to change.
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.

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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Required body text

Post by crythias »

rafaqf wrote: I'm trying to have my body text in the customer interface not required too, maybe remove it.
That isn't likely.

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
Locked