RE: Overriding configuartion in Liferay Form

Piotr Krzesniak, modified 5 Years ago. New Member Posts: 23 Join Date: 7/24/20 Recent Posts
Hello, i have one question. Is it possible to add my own configuration to created form used by Liferay's feature and if yes tell me the best approach to to do that. Thank you very much in advance.
thumbnail
Dominik Marks, modified 5 Years ago. Regular Member Posts: 149 Join Date: 8/29/12 Recent Posts
Possible the "easiest" way to do this is to create JSP Override for the configuration.jsp of the forms module, see https://help.liferay.com/hc/en-us/articles/360017881152-JSP-Overrides-Using-OSGi-Fragments

To automatically save your configuration just be sure that your <input>-Fields have a name in the form "preferences--somePreferenceKey--" as described here: https://help.liferay.com/hc/en-us/articles/360018178611-Using-Configurable-Portlet-Preferences#step-2-create-the-configuration-jsp-for-displaying-the-portlet-preference-options
Piotr Krzesniak, modified 5 Years ago. New Member Posts: 23 Join Date: 7/24/20 Recent Posts
okay, thank you. I am gonna try this out and then write my results
Piotr Krzesniak, modified 5 Years ago. New Member Posts: 23 Join Date: 7/24/20 Recent Posts
Where can i find the direct path to configuration.jsp of the forms module? In the example that you linked they override login.jsp in  com.liferay.login.web bundle. Which bundle is suitable for me ? 

thumbnail
Dominik Marks, modified 5 Years ago. Regular Member Posts: 149 Join Date: 8/29/12 Recent Posts
The module you are looking for would probably be "com.liferay.dynamic.data.mapping.form.web". Inside that module you will find the configuration.jsp inside the directory "display". 

You did not write which Liferay version you are using. The module above is found in Liferay 7.3