Hello
I would like to have multiple date pickers available for a user to choose a start and end date within an embedded form. However when the user choose a date in the date picker, it populates the chosen date in both fields.
I have googled and found this is a common problem with ui-bootstrap. The problem is that most examples want to use different ng-models. I am concerned that approach will not work with the Forms SDK since I think the ng-model is inherited with the Forms SDK.
Please see how other suggested to solve this problem outside Camunda.
Does anyone have a sample markup to use multiple date pickers in an embedded form?
Thanks
Greg
Currently the markup I am using looks like the following.
<p><strong>Start Date</strong></p>
<p class="input-group">
<input type="text"
cam-variable-name="concept_development_start_date_dt"
cam-variable-type="Date"
class="form-control"
datepicker-popup="yyyy-MM-dd"
is-open="dateFieldOpened" />
<span class="input-group-btn">
<button type="button"
class="btn btn-default"
ng-click="open($event)">
<i class="glyphicon glyphicon-calendar"></i>
</button>
</span>
</p>
<p><strong>End Date</strong></p>
<p class="input-group">
<input type="text"
cam-variable-name="concept_development_end_date_dt"
cam-variable-type="Date"
class="form-control"
datepicker-popup="yyyy-MM-dd"
is-open="dateFieldOpened" />
<span class="input-group-btn">
<button type="button"
class="btn btn-default"
ng-click="open($event)">
<i class="glyphicon glyphicon-calendar"></i>
</button>
</span>
</p>