SKUID model doesn't trigger standard validations if no changes on model fields

  • 1
  • Question
  • Updated 3 years ago
  • Answered
I want to throw an standard salesforce validation error in the SKUID page when the user click on a SKUID button (not standard save button).

My problem is, if I haven't change the value of a field on the field Editor area, the validation message won't fire

If I change a field value to 'Yes' and then reset it to "-None-" (in this case all fields are picklists)
it throws the validation error message.

any solution for this?

Thanks in advance. 
Photo of Hasantha Liyanage

Hasantha Liyanage

  • 1,446 Points 1k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Hi Hasantha,

You can trigger required field validation from a Skuid button using the approaches described here: Trigger required field check without saving.

Triggering any other kind of Salesforce validations would require actually performing a save.