You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting the slave field name as one of the Date field ids makes it work.
I don't know if this is a bug or is the intended way to work.
masterBoolean = MasterSelectBoolField(
title=_(u'MasterBoolean'),
description=_(u'This field controls the visibility of slaveField6, '
u'which will only become visible when this checkbox is '
u'checked.'),
slave_fields=(
{'masterID': 'form-widgets-masterBoolean-0',
'name': 'slaveField7-day',
'action': 'show',
'hide_values': 1,
'siblings': True,
},
),
required=True,
)
When adding a Date field like:
slaveField7 = schema.Date(title=_(u'SlaveField7', u'Start Date (day/month/year)'), default=datetime.date(2007, 4, 1))
JQuery refers to "slaveID": "#form-widgets-slaveField7"
And Date field ids are like:
form-widgets-slaveField7-day
form.widgets.slaveField7-month
form-widgets-slaveField7-year
The text was updated successfully, but these errors were encountered: