Show an INLINE Alert message in Suitelet page.

Add an alert message in between two fields, use the following code section:.

if (((connectedEntity.value).toLowerCase() != (fundNameFromPortal.value).toLowerCase())) {
                    log.debug('different names');
                    //Information
                    var mismatchMessage = form.addField({
                        id: "custpage_mismatchalert",
                        type: serverWidget.FieldType.INLINEHTML,
                        label: 'Mismatch Error',
                        container: 'custpage_primarygroup'
                    });
                    mismatchMessage.defaultValue = '<p style = "color:#FF0000">Fund Name entered does not match any NetSuite record. <br/>Please verify that the fund name is correct.</p>';
                }

Leave a comment

Your email address will not be published. Required fields are marked *