Skip to main content
Nintex Community Menu Bar
Question

Field-level real-time custom validation for a model

  • July 10, 2024
  • 5 replies
  • 11 views

Forum|alt.badge.img+6

I am new to skuid. in my model fields, i have requirement like for "Phone number " field only supports digits and length should be 10. another requirement like for “Name” field only supports characters and digits(numbers) are not allowing.can any one tell,how to approach for this requirement.

This topic has been closed for replies.

5 replies

Forum|alt.badge.img+7

Hi, Raj,
While Skuid handles some page-level validation (e.g. making a field required at the page level), Skuid doensn’t have an out-of-the-box feature that handles logic that advanced right now. I would suggest one of two options:

  1. Use standard Salesforce validation rule.
  2. Write a custom field renderer with JavaScript that handles the validation. (Here’s a bit of info on custom field renderers)
If you want this validation to apply org-wide (not just in a single Skuid page), I would definitely recommend the first approach. It is probably simpler and will ensure the validation will always be run when users are entering data. If you want to handle this logic just in a single page, you will probably have to go the JavaScript approach.


Forum|alt.badge.img+6
  • Author
  • July 10, 2024

for specific field, where i have to write my custom logic. example: for first name supports only characters not numerics and special characters. for this in field-level, where i have go to write my custom logic means step by step and validation script code


Forum|alt.badge.img+18

Raj,

As emily said above, there is nowhere in skuid that you can write a validation rule to apply to a field every time you use the field. You can write a javascript snippet and us it as a custom field renderer, but you will have to manually apply the custom renderer every time you use the field.

Here’s the documentation on field renderers: http://help.skuidify.com/m/11720/l/214147-skuid-ui-field-renderers

And the community has lots of examples.


Forum|alt.badge.img+6
  • Author
  • July 10, 2024

can u pls provide the community likns


Forum|alt.badge.img+11

Search the community for “custom renderer”.  Look to the right under Related Conversations.