Consider the scenario,
We have a client script deployed in the item fulfillment record and when the status of the item fulfillment status is changed to shipped only via UI a dialogue box must be shown and it contains the texts from the shipping note field(The field in the item fulfillment record.)
The dialogue box will be closed by clicking the OK button. We can click the keyboard enter button so that the alert box will get closed. How we can achieve this?
Solution :
We can use this dialogue. alert() standard NetSuite function. This is the standard function and We can not update the functionality of this standard function. The user must click the OK button to close the message.
If the user needs the functionality like closing the aler by hitting the enter button then we must use an external library (sweet alert/ ext js)to display the message. Or build the custom modal using inline HTML and develop the key. enter functionality in the modal script.
We can’t achieve this in the standard. javascript dom alert functionality and does not support the styling for string.