Shannon
12/09/2024, 7:56 PMCeligo AI
12/09/2024, 7:56 PMAI generated answer (using internal Slack threads):To hide the currency on a sales order form, you can use a beforeLoad user event script. This script will allow you to set the display type of the field to "hidden". Here is a sample code snippet:
javascript
function beforeLoad(context) {
if (context.type !== context.UserEventType.CREATE)
return;
var form = context.form;
var currencyField = form.getField('currency');
if (currencyField) {
currencyField.updateDisplayType({
displayType: serverWidget.FieldDisplayType.HIDDEN
});
}
}
This script checks if the form is being created, gets the currency field, and if it exists, sets its display type to hidden.
Please note that this will only hide the currency field on the form. The actual currency value will still be stored in the record and can be accessed programmatically or through other forms that do not hide the currency field.
******
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
12/09/2024, 7:57 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831768751
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828475714
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.821324885
Celigo AI
12/09/2024, 7:57 PM