Default value for Checkbox of Dynamic Field type Date

Moderator: crythias

Locked
aMescAs
Znuny newbie
Posts: 24
Joined: 05 Jan 2015, 13:27
Znuny Version: 3.3.9
Real Name: Flávio Rocha

Default value for Checkbox of Dynamic Field type Date

Post by aMescAs »

Hi,

i've created a dynamic field, type Date, and include it in "Frontend::Agent::Ticket::ViewNote".

The field looks like this:

Image
  • Questions:
  • How to i enable, by default, the checkbox for this field?
  • Is it possible to remove the checkbox?
OTRS 3.3.9 (private) on Windows Server 2012 with MySQL database.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Default value for Checkbox of Dynamic Field type Date

Post by jojo »

aMescAs wrote: [*] How to i enable, by default, the checkbox for this field?
Set the field to mandatory
aMescAs wrote: [*] Is it possible to remove the checkbox?[/list]
No
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
aMescAs
Znuny newbie
Posts: 24
Joined: 05 Jan 2015, 13:27
Znuny Version: 3.3.9
Real Name: Flávio Rocha

Re: Default value for Checkbox of Dynamic Field type Date

Post by aMescAs »

jojo wrote:
aMescAs wrote: [*] How to i enable, by default, the checkbox for this field?
Set the field to mandatory
aMescAs wrote: [*] Is it possible to remove the checkbox?[/list]
No
Okay, it's a possibility. I was searching for a simple way for the user interact with.. but it works for now! :D

Thank you.
OTRS 3.3.9 (private) on Windows Server 2012 with MySQL database.
Jarod
Znuny newbie
Posts: 30
Joined: 08 Jul 2014, 10:41
Znuny Version: 4.0.6
Real Name: Patrick

Re: Default value for Checkbox of Dynamic Field type Date

Post by Jarod »

Hi,

I am also working on this to get the ticket event calendar working.
I've created the date/time fields and enabled them in some dialogs.

The date/time is set to the actual time, thats OK.
My issue is, that I want them to be checked by default.

I've added them with the content "2" (should be mandatory), but they are not checked.

What are I am doing wrong?
Viele Grüße

Jarod
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: Default value for Checkbox of Dynamic Field type Date

Post by EXG133 »

I wanted "Due Date" to have an offset of three days. Unfortunately this also ticked the checkbox by default even with "1" in the SysConfig. So I'm back to offset "0".
Try filling in a very small offset number, that should work for you.
Jarod
Znuny newbie
Posts: 30
Joined: 08 Jul 2014, 10:41
Znuny Version: 4.0.6
Real Name: Patrick

Re: Default value for Checkbox of Dynamic Field type Date

Post by Jarod »

Hi,

thanks for the hint.
Works like a charm. 8)

Now I am struggeling with the TicketEventCalendar, but this is another issue.
Viele Grüße

Jarod
Locked