Hi there!
During some form editing I set several fields to require input by adding the “isrequired=true” attribute. However, this does not seem to work for date fields???
<viewdef type="form" name="CollectingEventSub" class="edu.ku.brc.specify.datamodel.CollectingEvent" gettable="edu.ku.brc.af.ui.forms.DataGetterForObj" settable="edu.ku.brc.af.ui.forms.DataSetterForObj">
<desc><![CDATA[Collecting Event]]></desc>
<columnDef>100px,2px,210px,5px,80px,2px,210px,5px,100px,2px,126px,0px,p:g</columnDef>
<columnDef os="lnx">115px,2px,210px,5px,105px,2px,210px,5px,125px,2px,136px,0px,p:g</columnDef>
<columnDef os="mac">130px,2px,260px,5px,85px,2px,260px,5px,115px,2px,166px,0px,p:g</columnDef>
<columnDef os="exp">p,2px,p:g,5px:g,p,2px,p:g,5px:g,p,2px,p:g(2),0px</columnDef>
<rowDef auto="true" cell="p" sep="2px"/>
<rows>
<row>
<cell type="label" labelfor="7"/>
<cell type="field" id="7" uitype="plugin" name="this" initialize="name=PartialDateUI;df=startDate;tp=startDatePrecision" uifieldformatter="Date" isrequired="true"/>
<cell type="label" labelfor="10"/>
<cell type="field" id="10" uitype="plugin" name="this" initialize="name=PartialDateUI;df=endDate;tp=endDatePrecision" uifieldformatter="Date" isrequired="true"/>
<!--<cell type="label" labelfor="3"/>
<cell type="field" id="3" name="method" uitype="combobox"/>-->
</row>
<row>
<cell type="label" labelfor="4"/>
<cell type="field" id="4" name="locality" uitype="querycbx" initialize="name=Locality;title=Locality;clonebtn=true" colspan="10" isrequired="true"/>
</row>
<row>
<cell type="label" labelfor="vl"/>
<cell type="field" id="vl" name="verbatimLocality" uitype="text" colspan="10" isrequired="true"/>
</row>
<row>
<cell type="label" labelfor="6"/>
<cell type="field" id="6" name="remarks" uitype="textareabrief" rows="2" colspan="10"/>
</row>
<row>
<cell type="subview" viewname="Collectors" id="12" name="collectors" colspan="12" rows="3"/>
</row>
<row>
<cell type="label" labelfor="vcl"/>
<cell type="field" id="vcl" name="text1" uitype="text" colspan="10"/>
</row>
</rows>
</viewdef>