RE: Form URL when it is not a public form?

Carlos Alonso Vega, modified 5 Years ago. New Member Posts: 10 Join Date: 11/8/17 Recent Posts
I see that a form can be shared and have a direct link to it, that can be obtained at "publish" option.  But in this case the form is public, anyone without login can use it.  You do not even have to assign the form to any portal page. Just the definition of the form as a content is needed when the form is shared (and public)
I would like to have private forms in a similar fashion.  I would like to have the option to share a link to a private form that only could be filled by authenticated users. it would ask first for identification and then the browser only show the form. And as public forms, it did not need that the form to be assigned to any page.
Is there any option to have a similar option to have a link to a (private) form that previously asks for login? TIA Carlos
thumbnail
Ben Turner, modified 5 Years ago. New Member Posts: 4 Join Date: 5/23/13 Recent Posts
Hi Carlos, there is a simple way to turn on authentication for forms, so that the behaviour you are looking for can be used.  When editing the form, click the vertical ellipsis (aka kebab menu) at the top-right corner of the screen and choose "Settings".  In Form Settings you can turn on the "Require User Authentication" option.  Once the form is published anyone accessing the form URL directly will be automatically presented with the Login portlet.  Upon submission of a valid login they will be redirected to the form URL.
(You didn't say which version of Liferay you are using - the above is confirmed for 7.2)
Cheers,Ben
Carlos Alonso Vega, modified 5 Years ago. New Member Posts: 10 Join Date: 11/8/17 Recent Posts
Hi Ben,
Thanks for your reply. We are using Liferay 7.1 CE.  It seems that in our version number or for being CE, we do not have the option you mentioned.
Our options in the kebab menu  are two; Settings and Publish.  Settings are about requiring captcha, redirection at end, export format and email notifications.   And publish is about making it a public form without authentication.  Unfortunately we do not find the options you mentioned.  Could it be a feature missing in CE?   Any  workaround or advice will be greatly appreciatedCarlos
thumbnail
Ben Turner, modified 5 Years ago. New Member Posts: 4 Join Date: 5/23/13 Recent Posts
Hi Carlos, I just tested with 7.1.3 CE GA4 and the option "Require user authentication" is available on the Settings tab - directly above the "Require CAPTCHA" option.  My best advice would be to make sure you're on this version of 7.1, or move to 7.2 (or 7.3!).  Best regards, Ben