Message Boards
Liferay 7.3 set predefinedValue of custom form field (React) with code.
Matias A., modified 3 Years ago.
Liferay 7.3 set predefinedValue of custom form field (React) with code.
New Member Posts: 2 Join Date: 9/12/20 Recent Posts
Hello,
We are trying the recently released form field module template using react instead of soy for Liferay 7.3 .
It comes with a java class (a DDMFormFieldType) and a js file with React code.
What we want to accomplish is to add a calculated value to predefinedValue for the custom field.
We have the code with the calculation in a java class, but what we can't solve is:
Where/how can we set the predefinedValue or define a another setting? Should we create a render class and a settings class? Would this work with react?
Is there another way to do this?
I could not find any doc regarding this (official doc goes up to 7.2 and talks about soy templates). Thank you very much for your responses.
We are trying the recently released form field module template using react instead of soy for Liferay 7.3 .
It comes with a java class (a DDMFormFieldType) and a js file with React code.
What we want to accomplish is to add a calculated value to predefinedValue for the custom field.
We have the code with the calculation in a java class, but what we can't solve is:
Where/how can we set the predefinedValue or define a another setting? Should we create a render class and a settings class? Would this work with react?
Is there another way to do this?
I could not find any doc regarding this (official doc goes up to 7.2 and talks about soy templates). Thank you very much for your responses.