Message Boards

creating a custom form field in 7.2

marvin ros, modified 4 Years ago.

creating a custom form field in 7.2

Junior Member Posts: 35 Join Date: 5/9/19 Recent Posts
Hello,
I am currently trying to create a custom form-field for 7.2.1 GA2 Portal but it seems like it is not possible to create a form-field for this version as you can see in the imgur link.https://i.imgur.com/gJPJ3h5.png

Creating a 7.1 form-field is possible but after deployment, it is not shown in content ->  forms on 7.2.
In the browser console there is this error:


backend.js:6 Error: Trying to define a module that was not registered: dynamic-data-additional-formfield-form-field@1.0.0/config
This usually means that someone is calling define() for a module that has not been previously required.


Can you create custom form fields for 7.2.1 GA2?

best regards
Michael Freeman, modified 4 Years ago.

RE: creating a custom form field in 7.2

Junior Member Posts: 37 Join Date: 7/2/12 Recent Posts
Seeing same problem here on my end. Opened up another issue before realizing others were having this issue too.
thumbnail
Olaf Kock, modified 4 Years ago.

RE: creating a custom form field in 7.2

Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts
This problem came up on Stackoverflow yesterday, attributing Jorge Diaz:
Jorge Diaz:

It is being implemented in https://issues.liferay.com/browse/LPS-98417 and it is true there is no blade example.
Meanwhile you can download following example code:

Tushar Gupta, modified 3 Years ago.

RE: creating a custom form field in 7.2

New Member Post: 1 Join Date: 5/28/20 Recent Posts
Hello,
I am currently trying to create a custom form-field for 7.3.1 GA2 CE .i created custom form field successfully and it is visible in sidebar container but when i am trying to  use that form field on any form it is giving an error "Field doesn't exist" .no error logs on IDE console.
thumbnail
Nick Berg, modified 3 Years ago.

RE: creating a custom form field in 7.2

New Member Post: 1 Join Date: 5/12/20 Recent Posts
Is this patch only for dxp cause when i add the  "com.liferay.dynamic.data.mapping.form.field.type.slider-1.0.0.jar" into {LIFERAY_HOME/osgi/modules it wont show a start message in the console using liferay-7.2.1-ga2-ce using this https://issues.liferay.com/browse/LPS-103049 as reference.  i want to make this in 7.3.4-ga5 https://help.liferay.com/hc/en-us/articles/360017889212-Forms-Storage-Adapters with crud functionality so is there a patch for 7.3 ?
blade version3.9.2.202004101340
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)