Hello,
We have any chance to define multiple condition for visibility of the fields in Lookup comment?
data.datasource = OptionField(āData Sourceā, default=āUSGSā, options=[āUSGSā, āEMSCā], description=āData Sourcesā)
data.time_emsc = OptionField(āTime Rangeā, default=āCurrent Dayā, options=[āSpecific Year-Monthā,āCurrent Dayā, āCurrent Monthā], description=āTime Range for the occured Earthquakesā, visible = IsEqual(Lookup(ādata.datasourceā), āEMSCā))
date.start_date = DateField(āStart Dateā, visible=IsEqual(Lookup(ādata.datasourceā), āEMSCā))
date.end_date = DateField(āEnd Dateā , visible=IsEqual(Lookup(ādata.datasourceā), āEMSCā))
I want to add two conditions from data.datasource and data.time_emcs fields for the date.start_date and date.end_date but I did not find the best way. Only And(IsEqualā¦) option is available but it wants to BooleanField for the second condition.
Can we do it with any way?
Thanks.