Modify

Opened 2 years ago

Closed 2 years ago

Last modified 7 months ago

#9986 closed defect (fixed)

show when checkbox enabled doesn't work

Reported by: skyrat@… Owned by: robguttman
Priority: normal Component: DynamicFieldsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (last modified by rjollos)

I tried various keywords to specify the state of a checkbox (true/false, enabled/disabled, 0/1). 0/1 finally was doing at least something:

[ticket-custom]
expertmode = checkbox
expertmode.label = Expert mode
expertmode.options =
expertmode.order = 7
expertmode.value = 0

when priority.show_when_expertmode = 0

-> reloading (checkbox unchecked) -> Priority was NOT shown but should be

and when priority.show_when_expertmode = 1

-> reloading (checkbox unchecked) -> Priority was shown but should NOT be

The second thing is that clicking the checkbox did not react in any visual case so the fields remained unchanged.

Am I missing something? When just changing the control type from checkbox to select, all worked as expected.

Attachments (0)

Change History (5)

comment:1 Changed 2 years ago by robguttman

(In [11519]) refs #9986: now handles checkbox triggers.

comment:2 Changed 2 years ago by robguttman

  • Resolution set to fixed
  • Status changed from new to closed

Oops, I wasn't handling checkboxes as trigger fields. Please try the above fix and reopen if it doesn't work. Thanks.

comment:3 Changed 2 years ago by robguttman

Note, please only use the 0.11 branch.

comment:4 Changed 9 months ago by rjollos

  • Description modified (diff)

comment:5 Changed 7 months ago by rjollos

In 13650:

Bump version to 1.2.4. Refs #11378, #11118, #11523, #10126, #9605, #9986, #9996, #8971.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.