Description field is not getting auto expand in service portal like self service view.

anupriya7
Kilo Expert

has anybody faced this kind of issue?

In the below screen shot end user is not able to see all the content of description field and needs to scroll down. that should get auto expand   in portal view as self service and legacy view .

find_real_file.pngfind_real_file.png

In this snapshot of self service view description field get auto expand.

find_real_file.png

1 ACCEPTED SOLUTION

Ivano B
ServiceNow Employee
ServiceNow Employee

Hi Anupriya



I would suggest to inject some CSS on the form widget instance in order to increase the height of the field.


Unfortunately it seem that the CSS in the main UI is calculated dynamically to be adjusted to the content this does not happen in the service portal.



You can use some CSS in the CSS field of the instance record,


This a possible example.




Form___ServiceNow 2.png



Cheers


R0b0


View solution in original post

10 REPLIES 10

anupriya7
Kilo Expert

@Vinoth Murugan For work around exactly where I need to change below script, can you please assist me with steps-


#sp_formfield_description {


resize: both !important;


}


Ivano B
ServiceNow Employee
ServiceNow Employee

Hi Anupriya



you need to put the CCS in the field i showed above or in the same filed of your page.



form___ServiceNow 3.png



Try and let me know



Cheers


R0b0


kiranped
Giga Contributor

Hi,


I tried this as below doesn't work.


textarea.form-control {


    height:auto;


}


Hi Anu,



I am facing the same issue. Were you able to fix it? If Yes, could you let us know what changes have you made to get it work?


jeffs59vette
Giga Contributor

Vinothkumar: Wow...Answers are now posted in HI where I can't get to them:

"You do not have sufficient privileges to access this knowledge item"

Unbelievable!