Show a modal based on a logged in user's field?

I need to be able to show a modal based on a logged in user’s field, in this case, if their account is not verified, show modal. Seems like Momen limits me to only be able to use the account ID field on page load and not any other fields. Is there a way to build my desired functionality?

You can add an account in the Data Source section of the page. Then, when this data is successfully loaded, you can perform some processing; for example, setting different values for a page variable. After that, your Conditional View can use this page variable to display different cases.

1 Like

Yes, it’s not recommended to use the logged-in user’s data during page_load, as that’s not secure.

1 Like

Amazing, that worked! Thank you. Just have a follow up question. Is it possible to reuse modals or save them as reusable elements so that I don’t have to recreate duplicate modals?

We are working on it, it’s on the roadmap.

1 Like