Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
titleExample of Usage

Assume for this example to require two date fields in your wizard to specify the from and to date of an iteration.

Code Block
languagexml
<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
languagexml
<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
languagexml
<at:var at:name="projectdoc-duration-from" at:rawxhtml="true"/> - 
<at:var at:name="projectdoc-duration-to" at:rawxhtml="true"/>

...