This procedure displays the Login Widget as a modal pop-up on a form page.
Use this procedure when the Login Widget cannot be displayed on its own landing page in advance of the registration form.
Configure the Login Widget Settings in InGo Admin
- Widgets -> (select Login Widget) -> Edit -> Display
- Tick the boxes for the following settings as per the image below:
- Run widget as a dialog
- Disable dialog close
- Auto open dialog
- Save
Configure the Login Widget Redirection URL Setting
In the Login Widget embed snippet, ensure the "data-ingo-redirect" URL value has a query string parameter appended - "disable-login-widget-popup=true". This setting will allow the form page to re-render with the pop-up suppressed so that the form can be filled out. Example:
<script src="https://cdn.ingo.me/widgets/##-WIDGET-UNIQUE-ID-##.js"
data-ingo-manual="http://www.my-reg-site.com/same-page?disable-login-widget-popup=true"></script>
Embedding on a Form Page
Pop-up Login Widgets can be embedded on registration form pages with the Registration Widget in situations where it's not possible to embed the Login Widget on a preceding page. Embed both the Login Widget and the Registration widget below the ending </form> tag on the page.
Test
Always test your InGo setup. In addition to the standard testing procedure, ensure in this case that:
- the Login Widget pops up as expected
- If redirecting to the same page, the Login Widget doesn't pop up again
- autofill works as usual for social registrations