Adjust the height of a multiline additional field

Adjust the height of a multiline 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.  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 additionalField="WorkOrder_Fields_UDF_CHAR15";
var height=5;
var width="width:150%!important";

jQuery('[name="'+additionalField+'"]').attr('rows',height).attr("style",width); 

3.  Replace "WorkOrder_Fields_UDF_CHAR15" 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

                      • How to populate requester details in request additional field

                        Requirement: Populate requester additional field information into request additional field. Usecase: Let us consider a scenario where certain employee details are imported from the Active Directory into User - Additional Fields. The business ...
                      • Additional field values

                        This report helps to find the picklist values in the additional fields. First you need to find the name of the table and the column holding the data, by executing the following SDP query report:  SELECT Tablename, Columnname FROM ColumnAliases WHERE ...
                      • Request with ServiceCatalog Additional fields

                        Service catalog additional fields are category specific fields. These fields are stored in a dynamic table, so we need to join the specific template to get the resultant.  To make any changes to a query, refer to the KB article below. ...
                      • How to populate user names in a request additional field

                        This sample script is to populate both technician and requester names in a request additional field Use Case: Populate all user name in a request additional field. Execution Steps:  1.  Create a new 'Single Line' additional field and add them in the ...
                      • Update request additional field with Custom Request ID

                        Requirement: Each Organization's request ID format may differ. In the current model, replacing the existing request id with these is not possible; however, the same can be replaced in an additional field. Custom Format : Script 1: 202305221125001 ...