Assume for this example to require two date fields in your wizard to specify the from and to date of an iteration. Code Block |
---|
| <div class="field-group">
<label for="projectdoc-duration-from">{getText('projectdoc.doctype.iteration.duration.from')}</label>
<input id="projectdoc-duration-from" class="datepicker-field date-field text"
type="text" name="projectdoc-duration-from" size="10" autocomplete="off">
</div>
<div class="field-group">
<label for="projectdoc-duration-to">{getText('projectdoc.doctype.iteration.duration.to')}</label>
<input id="projectdoc-duration-to" class="datepicker-field date-field text"
type="text" name="projectdoc-duration-to" size="10" autocomplete="off">
</div>
|
Add this hidden input element to your Soy Template: Code Block |
---|
| <input id="projectdoc-adjustVarValues-toDatePicker" type="hidden"
name="projectdoc-adjustVarValues-toDatePicker"
value="projectdoc-duration-from, projectdoc-duration-to"> |
Access the date picker elements in your page template like this: Code Block |
---|
| <at:var at:name="projectdoc-duration-from" at:rawxhtml="true"/> -
<at:var at:name="projectdoc-duration-to" at:rawxhtml="true"/> |
|