Redirecting from one suitelet form to another suitelet form by clicking the Button

let redirectUrl = url.resolveScript({

                        scriptId: ‘customscript_jj_sl_login_page, //Script Id of the target suitelet file

                        deploymentId: ‘customdeploy_jj_sl_login_page’, //Deployment Id of the target suitelet file

                        params: {

                            ‘internal_id’: internalId //Passing parameter value and get it on the target script file

                        },

                        returnExternalUrl: true

                    });

                    let responseHtml = `

                        <html>

                            <body>

                                <button onclick=”window.location.href=’${redirectUrl}‘”>Go To Login Page</button>

                            </body>

                        </html>

                    `;

Leave a comment

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