Skip Navigation
Expand
  • Advanced SearchOpens new dialog
    Enter plus (+) or minus (-) signs in search terms to make a word required or excluded
    Search Tips
    Filter by product
    Filter by category
Field Validation in the Web Chat for Service widget
Answer ID 12939   |   Last Review Date 04/01/2025

How do I set field validation for WCFS?

Environment
Chat
Oracle B2C Service
Web Chat for Service component version 24.10 (minimum required version)
 
Resolution
 
Starting with the 24.10 WCFS component, it is now possible to set the pattern attribute within the Pre Launch Form Field Data menu, for the standard fields and the custom fields of type text with a regular expression, to determine if the value of the field is valid.
 
If the text entered is not in the valid format, the field will change the border color and a message will be displayed. The default message is Please match the required format, but you can add a custom message by adding a key that is the concatenation of the field name and the word Message within the Custom Strings.  
 
Below is a basic example
 

 

For a complete guide on how to create and set up custom fields in WCFS see Answer ID 12816: Using Custom Fields in the Web Chat for Service widget

Please note that for standard fields the custom message string must not include 'plf' either. For example, to add a message for the First Name field validation, the Custom String should be added as in the screenshot below: