Message Boards

Custom Form field type for Liferay 7.2

thumbnail
Aston Pearl, modified 4 Years ago.

Custom Form field type for Liferay 7.2

Junior Member Posts: 62 Join Date: 2/4/13 Recent Posts
Hello All,I'm following this guide to create custom form field for Liferay 7.2. https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/creating-form-field-types
I'm deploying the generated code with the blade sample and encountered several JS errors. Do we have any official guide from Liferay for 7.2?Thanks in Advance !!!
Shubhankit Roy, modified 4 Years ago.

RE: Custom Form field type for Liferay 7.2

New Member Posts: 8 Join Date: 4/27/15 Recent Posts
Hi Aston
I also had a similar requirement recently and through liferay community channels on slack I came to know that there is no official guide at the moment as its not ready yet. Also, at the moment its not possible to create a module (via Blade) based on form-field template because that too is also under progress. Check: https://issues.liferay.com/browse/LPS-97844   and https://issues.liferay.com/browse/LPS-98417   for more info.
Meanwhile, what I did to get this working was that I went through the sample module created by Renato Rego (available on: https://github.com/natocesarrego/slider
and made necessary changes in its code to create my own custom form field types. May be you should do the same for the time until LPS-98417 is fixed and available.
Ahmed Shabaan, modified 3 Years ago.

RE: Custom Form field type for Liferay 7.2

New Member Post: 1 Join Date: 11/17/20 Recent Posts

Hi all, 

you simply can create new module project and select "form-field" as a project template.

Thanks.