eminero
11/11/2024, 4:36 PMCeligo AI
11/11/2024, 4:36 PMAI generated answer (using internal Slack threads):To make specific custcol fields mandatory on some forms, you can follow these steps: 1. Navigate to the custom form where you want to make the field mandatory. 2. Edit the form and go to the 'Fields' section. 3. Find your custom field in the list. 4. Set the 'mandatory' property of the field to true. Here is a sample code snippet that demonstrates how to make a field mandatory in SuiteScript:
javascript
var field = form.addField({
id: 'custpage_myfield',
type: serverWidget.FieldType.TEXT,
label: 'My Field'
});
field.isMandatory = true;
In this example, 'custpage_myfield' is the ID of the custom field. The 'isMandatory' property is set to true, which makes the field mandatory.
Please note that this method works for SuiteScript forms. If you are working with an online custom record form, you would need to use standard form techniques in JavaScript, such as jQuery or normal form field changes, to make a field mandatory.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
11/11/2024, 4:36 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.876213
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.841241121
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.837694943
Celigo AI
11/11/2024, 4:36 PM