Is there a jelly tag for date/time input fields?

hasnalakhrissi
Tera Expert

Is there a jelly tag for date/time input fields?

1 ACCEPTED SOLUTION

eridonado
Giga Contributor

You can also use this tag:


<g:ui_date_time id= "${jvar_name}" value= "${jvar_name}" />


View solution in original post

8 REPLIES 8

ramireddy
Mega Guru

Hi,



You can use normal input controls with type as "datetime", This will automatically render datetime controls.



input   class="inputcntrl"   id="StartDate" name="StartDate" type="datetime">


  </input>


Inactive_Us1474
Giga Guru

Hi Hasna,



You can use type such as date or time in input tags same as javascript in Jelly.


<input type="date" size="20" />


or <input type="time" size="20" />



Hope it helps.


paramveer
Mega Guru

you can use g:evaluate tag for the same. You can use normal gs date time function in g:evaluate tag.



for more detail, visit below link :




http://wiki.servicenow.com/index.php?title=Extensions_to_Jelly_Syntax#gsc.tab=0



Thanks,


Param


hasnalakhrissi
Tera Expert

I used 'g:ui_date' and it did work for me as a charm.


<g:ui_date name="start_date" value="${sysparm_start_date}" />


Thank you all!