meason Posted July 25, 2019 Share Posted July 25, 2019 Is it possible to have a login form but also have anonymous access to some forms? ie. Based on a URL parameter, I'd like to avoid showing the login and mainform and show a different form that doesn't require a login. I tried calling ShowModal() from the OnBeforeLogin event to show an 'anonymous' form if I get a particular parameter in the URL but it says Blocking method ShowModal() cannot be called here. I also want to avoid access to the main form. If the special param is not found, normal login and main form access would apply. Is there a way to do this in a single app? Or would I need to make a totally separate app that has no login form to cater for times where login is not required? Quote Link to comment Share on other sites More sharing options...
mhmda Posted July 27, 2019 Share Posted July 27, 2019 Yes it is possible. Quote Link to comment Share on other sites More sharing options...
billyChou Posted July 28, 2019 Share Posted July 28, 2019 do not use login form, you can custom design login form in main form may be can do . Quote Link to comment Share on other sites More sharing options...
kkelchev Posted July 31, 2019 Share Posted July 31, 2019 Hi Simple but not so clever solution is to "auto" confirm , login form (with special limited rights of course) depending parameters provided with URL from browser. Quote Link to comment Share on other sites More sharing options...
kkelchev Posted July 31, 2019 Share Posted July 31, 2019 Something better could be found here Quote Link to comment Share on other sites More sharing options...
meason Posted August 8, 2019 Author Share Posted August 8, 2019 Thanks everyone! I'll have to try the one that kkelchev referenced. In the meantime I had a workaround where I used the before login event and instead of creating and showing a different form, I used the main form and modified it to show only one tab with specific data, instead of the normal tabs it would normally show. Not ideal but it worked. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.