CRM and CX Blogs by Members
Find insights on SAP customer relationship management and customer experience products in blog posts from community members. Post your own perspective today!
cancel
Showing results for 
Search instead for 
Did you mean: 
Govil_Banga
Explorer
540
Scenario: Minimum character count for Mandatory fields

While defining the mandatory field behavior on C4C UI. we, As an admin/Developer, maintained mandatory checkbox and define mandatory rule condition under field properties. However in real world we come across business requirement to validate, minimum characters are mandatorily maintained by users for that field. it was technically not feasible via UI field properties before the Release 2305 and we always used to write validation via SDK to achieve the same.

SAP has provided a feature in Release 2305 which allows admin to maintain the minimum character length required to be mandatorily filled by users. some General Business Benefits are:

  • Data Integrity

  • Prevent Insufficient information

  • Some controls where users advertently bypass mandatory check just by maintaining some random character.


Let's consider a simple business scenario that technician is required to maintain minimum 20 characters order number in Other Reference field in a ticket and see how we can configure the same.

Configuration steps

  •  Go to Ticket screen and then select Start Adaptation.

  • Select the field Other Reference and open the field properties

  • Select the Mandatory check box and it will enable the Minimum Character count field

  • Maintain the value '20' in Minimum Character count



'Minimum Character Count' field enabled on selection of 'set as mandatory' field


 

  • Now End the adaptation and that is it. We are done with the configuration


How it works : Now lets create a ticket and see how other reference field mandatory behavior  works

 


Standard does minimum char length Validation


 

 

Restrictions : Currently we can not use these feature for below type of fields

  • Codelist

  • Identifier

  • Date and Time

  • Date

  • Formatted text

Labels in this area