Multi-line text field from Record Producer on form

Dan Brown2
Kilo Sage

Hi,

When an incident is raised from the Service Portal using a Record Producer, I have added the variables to appear on the incident form.

If it is a multi-line text field, then the text field will expand the field height automatically on the Service Portal, but when it is submitted onto the incident form the height isn't set automatically to the height of the text.

Is there a setting or fix for this?

Cheers,

Dan

3 REPLIES 3

Azim Kazi
Giga Guru

 

Hello Dan

 

 

  •  Navigate to Incident > All.
  • Open any incident record.
  • Right-click on the Short description field label and select Configure Dictionary.
  • In Max length, change the value to 1600.
  • Click Update.
  • Navigate to Service Catalog > Catalog Definitions > Record Producers.
  • Open the record producer named Report an Issue.
  • Note that there are two listed:
    • Description: Single Line text that maps to field Short Description from Incident table
    • Additional Information: Multi Line text that maps to field Additional Comments  from Incident table
  • Click Try it.
    Note that both fields are appear as expected with a single-line text field for the the Description and multi-line text field for Addiitional Information.

 

  • Navigate to Service Portal (https://<yourinstancename>.service-now.com/sp).
  • Click Get Help.
  • Under Categories, click Can We Help You?.
  • Click Report an Issue.
    Note that the Description field is displayed as a multi-line text field when it should be displayed as a single-line text field. 

     If you Satisfied with my answer kindly mark it as correct and make it helpful 🙂

 

Regards,

Ajim

 

 

 

Hi, thanks for the response. 

I don't think I explained myself clearly.

On the Service Portal - a form can be completed with multi-line

text and auto expand as below:

find_real_file.png

When it comes onto the form, then it is not expanded under the variables list:

 

find_real_file.png

Is there a way to resolve this?

Dan

 

Vishal Khandve
Kilo Sage

Hi Dan,

I think you have to change the type from multi line to html type.

 

then you can use onload client script like below

function onLoad() {
var sd = g_form.getControl('YOUR FIELD NAME');
sd.style.height = '400px';
}

 

Thanks,

Vishal

 

If this reply assisted you, please consider marking Correct or Helpful it.