How to open links in a new tab when executing an operation?

Tabla de contenidos

To open a link in a new tab in Athento, the operation must return the URL in the new_tab field. This is useful, for example, when the operation creates a new form and you want to open it without refreshing the screen from which the user executed the operation.

Example of a response returned by an operation:

return {
'msg_type': 'success',
'msg': 'The operation has been executed successfully',
'new_tab': '(URL to open)',
}