The use case is this…
I want to have several fields on the page and then unhide them and/or make them required based on some criteria(based on the type I’m in another object defining whether the field is required and/or visible).
I need help trying to set a field as required on a custom renderer. I am able to set it’s mode dynamically but not the required attribute.
var $ = skuid.$, field=arguments[0], value=arguments[1];
console.log('value: ’ + value);
console.log('field: ’ + field.required);
console.log(‘before’);
field.mode = ‘edit’;
field.required = ‘true’;
//also want to unhide this field
skuid.ui.fieldRenderers[field.metadata.displaytype]field.mode;
console.log(‘after’);
console.log('value: ’ + value);
console.log('field: ’ + field.required);
Question
custom field renderer to make a field required
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.