Custom form and page creation - help please

joclague
Kilo Contributor

Hello, I have 2 questions i would really appreciate some expert advice with. 1) I have created a custom application which contains a form. Within the form I have multiple fields. Some of these fields still contain the text (u_string) once saved and viewed. Why is this and how do I remove the unwanted text from my form. 2) Is there a way to publish this form on a page as a content block. Not as a table or set of data but an actual interactive form that can be published as part of ESS for example? Many thanks

1 ACCEPTED SOLUTION

ChrisBurks
Mega Sage

Hi Jon,



The u_ is usually put there by default when creating a custom field. But it's usually placed as the actually name of the field and not the display name that appears when viewing the form. If the display name of the fields contain the u_ you can change this by changing the label of the field.


Follow these steps:


1) Open a form. (new or existing)


2) right click on the desired field that needs changing


3) choose "Personalize label"


4) Edit the "label" and "Plural" fields by removing the u_


5) Click the "Update" button


Note: If this table is extended from another table, make sure the "table" field contains the name of your custom table. And if you have to change the table field, instead of clicking on the update button, right click the header bar of the form and choose "Insert" or "Insert and stay"



To display your form in the ESS portal, you actually don't have to create a UI page (or know jelly) if you simply want to display the form how it displays in the regular ServiceNow interface.


Follow these steps to display your form through ESS portal (this is a basic CMS page)


1) Navigate to Content Management > IFrames


2) Click on the New Button


3) Give it a name


4) Change the "sizing" field to "Expand to fit content"


5) in the URL field use this type of syntax:   <name of your table>.do


      For example if you were wanting to create a page that would bring up a new incident form to submit an incident, you could put "incident.do" as the url


6) Click the submit button


7) Navigate to Content Management > Sites (Assuming you want this page to be a part of a site)


😎 Click on the desired site


9) Scroll down to view the list of pages associated with the site


10) Either click new or click on an existing page


11) Scroll down the page and click on the "Edit Page" link (if you're creating a new page make sure you give it a name and a url before clicking Edit)


12) In the upper left hand corner click on the "Add content" link


13) In the popup search for your newly created IFrame (the name you gave it should appear in the list) and select it


14) Click on the "Add Here" dropzone where you want the IFrame to appear on the page (if creating a new page be sure to also add the desired header and footer content blocks)


15) At the top click on "Preview" link. Your form should appear. Make note of the url so that you can make links to it from the other pages in your site


View solution in original post

4 REPLIES 4

Sanjeev Kumar1
Kilo Sage

Hi,



If you need to create some custome page you need to learn UI Page and Jelly.



http://wiki.servicenow.com/index.php?title=UI_Pages



For Jelly read following



http://wiki.servicenow.com/index.php?title=General_Scripting



Thanks,


Sanjeev Kumar


joclague
Kilo Contributor

Thanks Sanjeev I will take a look at these links.


ChrisBurks
Mega Sage

Hi Jon,



The u_ is usually put there by default when creating a custom field. But it's usually placed as the actually name of the field and not the display name that appears when viewing the form. If the display name of the fields contain the u_ you can change this by changing the label of the field.


Follow these steps:


1) Open a form. (new or existing)


2) right click on the desired field that needs changing


3) choose "Personalize label"


4) Edit the "label" and "Plural" fields by removing the u_


5) Click the "Update" button


Note: If this table is extended from another table, make sure the "table" field contains the name of your custom table. And if you have to change the table field, instead of clicking on the update button, right click the header bar of the form and choose "Insert" or "Insert and stay"



To display your form in the ESS portal, you actually don't have to create a UI page (or know jelly) if you simply want to display the form how it displays in the regular ServiceNow interface.


Follow these steps to display your form through ESS portal (this is a basic CMS page)


1) Navigate to Content Management > IFrames


2) Click on the New Button


3) Give it a name


4) Change the "sizing" field to "Expand to fit content"


5) in the URL field use this type of syntax:   <name of your table>.do


      For example if you were wanting to create a page that would bring up a new incident form to submit an incident, you could put "incident.do" as the url


6) Click the submit button


7) Navigate to Content Management > Sites (Assuming you want this page to be a part of a site)


😎 Click on the desired site


9) Scroll down to view the list of pages associated with the site


10) Either click new or click on an existing page


11) Scroll down the page and click on the "Edit Page" link (if you're creating a new page make sure you give it a name and a url before clicking Edit)


12) In the upper left hand corner click on the "Add content" link


13) In the popup search for your newly created IFrame (the name you gave it should appear in the list) and select it


14) Click on the "Add Here" dropzone where you want the IFrame to appear on the page (if creating a new page be sure to also add the desired header and footer content blocks)


15) At the top click on "Preview" link. Your form should appear. Make note of the url so that you can make links to it from the other pages in your site



Chris that is great! Worked a treat in a few minutes. Thanks so much. j