I am working with a Javascript button to validate fields before the button can update fields.
Since there are over 20 fields to validate, (With the possibility of adding more) listing out each field in the Javascript Button and checking if it is blank would be very hard to maintain.
So I was wondering if it was possible to reference a field set in javascript? I tried using :
{!$ObjectType.Contact.fieldsets.Validate_Fields}
But it throws an Error: Field Contact.fieldSets.Validate_Fields does not exist. Check spelling.
Is there a different way to reference a fieldset in javascript?
I am only using a button, I have seen fieldsets being used in visualforce/apex but am wondering if it is possible with just javascript from a detail page button.