Field and Label formatting nightmare...

daveslater
Tera Contributor

I am trying to convert a paper checklist form into a UI Form, but I am struggling with some basic design issues.

The format of the form is several tabs, each with a number of questions, about 12-15 each tab, and each question quite long and detailed.

Next to each question should be a dropdown choice list to select from one of 3 options: Discussed and agreed, Not yet agreed, Not required.

I could not find a way to reuse the choice list for each question using a Choice field, so had to opt for a Reference field with a dropdown style referencing a custom table with the 3 choices in it.

The form sits its a scoped application.

The problem is, the short answer dropdown field takes up 80% of the page, and the long question shoved over to one side:

  come on man.png

I just want to be able to adjust this width but I just can't.

I have tried setting a Reference Style on the choice table, but this is ignored, even after clearing SN's cache.do and my browser's cache too. Same issue in Chrome, Edge and IE.

I have tried using "long label" attribute on the fields to no effect, again clearing all caches and multiple browsers.

I have tried using 2 columns and using Data Structure to hold the "label" in column 1, while the choice sits in column 2, but there's no clean way to hide the label on the field in column 2, without resorting to client scripts which would be cumbersome to maintain given how many questions are on the form in total.

I have opted to go for the label on the field in column 2 to be a colon, but this looks awful in the table or when referencing the fields in the UI which uses its display name of ":"

Are there any better ways?

--------------------------------------------------------------------------------------------------------------------

Edit:

...oh dear. That was not an option at all:

please god no stop.png

Why, ServiceNow, why?

1 ACCEPTED SOLUTION

andrew_venables
ServiceNow Employee
ServiceNow Employee

Have you considered using an Assessment/Survey or a CatalogItem/Record Producer?



Forms are specifically designed to hold form based data, what you are describing is more like a questionnaire with different rendering requirements.



Although Assessments might take a little longer to initially setup you will hopefully find they have many features that help with what you are ultimately trying to achieve.



Assessment Product Docs: Prhttps://docs.servicenow.com/bundle/jakarta-servicenow-platform/page/administer/assessments/referen...



And here's a sample of how they render:


AssessmentQuestionnaireForm.png


View solution in original post

5 REPLIES 5

All I can tell you from this experience is: my god, I wish I went with building surveys for it instead of what I did. Technical Debt for sure.