available type of "g:ui" fields

scwillson
Mega Guru

I am frequently working to build/modify jelly pages or popups.

I am currently trying to find out how to put in a multi-line input field. Is there any list I can reference for available field/form types?

I am only aware of things that I've found in pre-existing ui pages, and I have been able to implement them elsewhere, but it would be nice to have a place to find all those available to me.

The things I know of are just those on the wiki page http://wiki.servicenow.com/index.php?title=Extensions_to_Jelly_Syntax#.3Cg:ui_form.2F.3E

<g:ui_reference>

<g:form_label>

<g:ui_checkbox>

<g:ui_input_field>         ---- can I just use this one, and add some attribute to make it multi line?

etc...

1 ACCEPTED SOLUTION

Abhinay Erra
Giga Sage

use <g:ui_multiline_input_field>. In your instance, go to ui macro and search for name starts with ui_. You will get all the macros you can use.


find_real_file.png


View solution in original post

2 REPLIES 2

Kenny Caldwell2
Tera Contributor

Hi Simon,


g:ui is referring to ui macros.   That is one of the ways you can add a ui macro to your ui page.   UI Macros are reusable pieces of jelly that can be added to a ui page.



Look under ui macros and search for name startwith ui_ and you will see all of the OOB types.   There is one for ui_multiline_input_field.



Of course you can create your own.   From my experience when I have created a new ui macro.   I have had to manually flush the cache before my ui page actually calls it into the page.


Abhinay Erra
Giga Sage

use <g:ui_multiline_input_field>. In your instance, go to ui macro and search for name starts with ui_. You will get all the macros you can use.


find_real_file.png