UMS IFrame in Resubmission Mode
UMS IFrame in Resubmission Mode
1.Add the provided script reference to your application HTML page.
2.Insert script in the <body> that will create an Amaryllis custom UI element. Look at the HTML code sample.
3.After the “Request Resubmission“ action is perfomed the User receives the link to be able to redirect to the page via URL.
4.Underwriting Application data is retrived from Amaryllis Back-Office database with the fields specific to Resubmission view.
5.After Underwriting Application is filled in with data and submitted, Underwriting Application data into Amaryllis Back-Office database. As a result specific responses will be received.
1. Add script reference to your application HTML page
//sandbox environment
<script src= "https://sandbox.4levers.com/underwritingiframe/amaryllis-application.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js"></script>
//production environment
<script src= "https://underwriting.4levers.com/amaryllis-application.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js"></script>
// 2. Insert script in the <body> that will create an Amaryllis custom UI element
<body>
<script>
const currentElement = document.querySelector('amaryllis-application-resubmit');
if (currentElement)
document.body.removeChild(currentElement);
const urlParameters = new URLSearchParams(document.location.search.substring(1));
const token = urlParameters.get('token');
const element = document.createElement('amaryllis-application-resubmit');
element.token = token;
document.body.append(element);
</script>
</body>
//Resubmission Iframe example
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Application Resubmission</title>
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js" async></script>
<script src="https://sandbox.4levers.com/underwritingiframe/amaryllis-application.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<script>
const currentElement = document.querySelector('amaryllis-application-resubmit');
if (currentElement)
document.body.removeChild(currentElement);
const urlParameters = new URLSearchParams(document.location.search.substring(1));
const token = urlParameters.get('token');
const element = document.createElement('amaryllis-application-resubmit');
element.token = token;
document.body.append(element);
</script>
</body>
</html>