top of page
schooloffiche

How to Remove Commas from Other Field Options for Better Data Organization with Javascript




 

Introduction:


When designing forms in Laserfiche, it’s crucial to ensure data consistency and accuracy. One common issue that can arise is the inclusion of commas in the “Other” field. Commas can cause several problems, such as data parsing issues, where commas are often used as delimiters in data processing, leading to incorrect parsing and data segmentation, causing errors in data analysis and reporting. Additionally, many systems that integrate with Laserfiche forms may not handle commas well, leading to potential failures or misinterpretations of the data. Allowing commas can also lead to confusion and inconsistency in the data entered by users, making it harder to maintain clean and reliable records.


Prevent commas from being added to "Other" field - Modern and Classic Designer


  1. Select JS in the top right corner.

  2. Copy and paste the JavaScript code from the Laserfiche Advent Calendar Day 3 into JS.

  3. Add CSS class "otherchoice" to the fields you want the JavaScript to be enabled on.  *use "noCommas" as your CSS class in Classic Designer






Stop by every day for more holiday fun on the Laserfiche Advent Calendar.


0 views
bottom of page