Adjust the Height and Width of a multi line additional field

Adjust the Height and Width of a multi line additional field

Use Case:  

Multiline additional field sizes cannot be modified directly in the UI.  These can be modified using Field and Form Rules.

Execution Steps: 

1.  Create a new 'Multi-Line' additional field and copy the "column name" of the additional field created from the additional field listview.
2. Column name can be identified by going to Reports>New Query Report>Running the below query 

select columnname from columnaliases where aliasname like '%test%'



Replace test with the field name. 

2.  Go to Admin > Incident Templates > Select a particular template > Include this additional field in the template > Field and Form Rules > Rule execution - On Create / Edit > Event - "On Form Load"  > Actions - Execute Script - Copy Paste the below code snippet and save the script.

var x="UDF_CHAR2";
var height=10;
var width="width:150%!important";
jQuery('[name="'+x+'"]').attr('rows',height).attr("style",width); 

3.  Replace "UDF_CHAR2" with the copied "column name" of the additional field. 

4.  The request additional field will size will be modified in the new request creation form.


Field And Form Rule: 



                  New to ADManager Plus?

                    New to ADSelfService Plus?

                      • Related Articles

                      • FAFR - Sample script to have the additional field value appended to the actual subject line

                        Here is a sample script to be used in FAFR to have the additional field info appended to the actual subject line, var contract=$CS.getValue("WorkOrder_Fields_UDF_CHAR5"); var subject=$CS.getValue("SUBJECT"); var new_subject = subject + " : " + ...
                      • Script to Populate User Additional Field under Incident Template using FAFR

                        The script load the Requester Name under Incident Additional field ( As a pick list), by choosing the requester name under additional field the script populates the user additional field value. * Kindly create two additional fields under Admin -> ...
                      • How to adjust widget size in Dashboard

                        1. Under the Dashboard Tab, click on the 3 Horizontal Lines on the right corner and then Organize Widgets. 2. Mouseover on the bottom right corner of the application, the mouse pointer changes. Now press and drag to adjust the size.
                      • Script to set fields from CSV using FAFR.

                        Works in 10604 Requirement: Load Data from CSV depending on the value selected in an additional field. Usecase: Assume there are 3 additional fields for a request template, namely, "Reference number", "Payment type and "Vendor". "Reference number" is ...
                      • Query to display additional field associations with templates (MSSQL)

                        Tested in build MSSQL (14306) Use case The reports shows in which templates the created additional fields are associated Query select sd.name "Service Catalog Name", rt.templatename "Template name", fc.field_name "Fields" from requesttemplate_list rt ...