Enterprise Content Management for The Texas A&M University System

Shared Services

Community of Practice - CSS Files

How to use:

These CSS files can be imported into your Laserfiche forms to handle common tasks or provide CSS Classes to be used in your forms. To use them, simply use an import line on the first line of your Custom CSS on your form.
@import "/Forms/Custom/CSS/COP/<CSS_File_Name>.css";

WidthLabelToolbox.css

(click to toggle file contents)
This CSS file was created to assist in handling the basic functions of allowing fields to appear on the same line and adjust how much space is used for label and inputs of those fields.
  • CSS Classes
  • WidthXX - Sets the Field to take up XX% of the row of fields. Values for XX are 10,15,20,25,30,35,40,50,60,70,75,80,90,100
  • LabelXX - Sets the Label to take up XX% of the field's length. Values for XX are 10,20,25,30,33,35,40,45,50,60,66,70,75,80,90
  • OverLabel - Sets the Field to appear above the input field.
  • NoLabel - Hides the Field label.
  • MaxField - Sets the Field's input to take up as much free space as posible. (90% for calendar and currency fields to allow space for calendar picker and "$" respectively)


HideAutoComments.css

(click to toggle file contents)
This CSS file was created to hide the auto-generated comments box which Laserfich adds to User Tasks by default.

Community of Practice - JavaScript Files

How to use:

These JS files can also be imported into your Laserfiche forms to provide functions to be used in your forms. To use them, create javascript to import the file in the JavaScript on your form.
var <Javascript_Filename> = document.createElement('script'); <Javascript_Filename>.src = "/Forms/Custom/js/COP/<Javascript_Filename>.js"; document.getElementsByTagName('head')[0].appendChild(<Javascript_Filename>);

RemoveNonAlphaNumericChars.js

(click to toggle file contents)
This JS file was created to set a field to only allow alphanumeric characters. To use setup an input element to call RemoveNonAlphaNumericChars on a Change event. Warning: This file does create a pop-up to Alert the user that non-alphanumer characters are not allowed.


DirectorySearch.js

(click to toggle file contents)
This JS file was created to retreive a person's data from the Enterprise Directory. You will need to use either a NetId or UIN to set the person for whom you are retreiving data.
Functions:
  • Functions to set the Data retrieved:
  • useDirectorySearchUIN(uin) - This function sets the data retrived based on the UIN provided.
  • useDirectorySearchNetId(netId) - This function sets the data retrived based on the NetId provided.
  • useDirectorySearchDn(dn) - This function sets the data retrived based on the DN string (Laserfiche username for NetID logins) provided.
  •  
  • Functions to retrieve data:
  • getDirectorySearchCn() - Returns the User's Cn value from the Enterprise Directory if it exists.
  • getDirectorySearchOfficialName() - Returns the OfficialName value from the Enterprise Directory if it exists.
  • getDirectorySearchTitle() - Returns the Title value from the Enterprise Directory if it exists.
  • getDirectorySearchFirstName() - Returns the FirstName value from the Enterprise Directory if it exists.
  • getDirectorySearchLastName() - Returns the LastName value from the Enterprise Directory if it exists.
  • getDirectorySearchPhone() - Returns the value for Phone Number from the Enterprise Directory if it exists.
  • getDirectorySearchEmail() - Returns the Email address value from the Enterprise Directory if it exists.
  • getDirectorySearchPostalAddress() - Returns the PostalAddress value from the Enterprise Directory if it exists.
  • getDirectorySearchDepartment() - Returns the Department value from the Enterprise Directory if it exists.
  • getDirectorySearchAdloc() - Returns the Adloc value from the Enterprise Directory if it exists.
  • getDirectorySearchScopedAffiliation() - Returns the ScopedAffiliation value from the Enterprise Directory if it exists.
  • getDirectorySearchNetId() - Returns the NetId value from the Enterprise Directory if it exists.
  • getDirectorySearchUIN() - Returns the UIN value from the Enterprise Directory if it exists.
  • getDirectorySearchSupervisorUIN() - Returns the SupervisorUIN value from the Enterprise Directory if it exists.
  • isDirectorySearchActive() - Returns a true/false value for if the person is Active based on the the ScopedAffiliation value from the Enterprise Directory.
  • isDirectorySearchTerminated() - Returns a true/false value for if the person is Terminated based on the the ScopedAffiliation value from the Enterprise Directory.
  • isDirectorySearchRetired() - Returns a true/false value for if the person is Retired based on the the ScopedAffiliation value from the Enterprise Directory.
  • getDirectorySearchPersonMember() - Returns a true/false value for if the person is Retired based on the the ScopedAffiliation value from the Enterprise Directory.
  • getDirectorySearchPersonPrimaryMember() - Returns a true/false value for if the person is Retired based on the the ScopedAffiliation value from the Enterprise Directory.
  • getDirectorySearchPersonMemberName() - Returns a true/false value for if the person is Retired based on the the ScopedAffiliation value from the Enterprise Directory.
  • getDirectorySearchFullTime() - Returns a 'T'/'F' value for if the person is FullTime.
  • getDirectorySearchDistinguishedName() - Returns the DistinguishedName value from the LDAP if it exists. This is used as the username when a NetId login license is created.