[MGNLFORM-320] Static field converter Created: 19/Jun/20  Updated: 25/Jun/21  Resolved: 17/Aug/20

Status: Closed
Project: Magnolia Form Module
Component/s: field
Affects Version/s: 2.5.2
Fix Version/s: 2.7

Type: Bug Priority: Neutral
Reporter: Richard Gange Assignee: Sang Ngo Huu
Resolution: Fixed Votes: 4
Labels: 622
Remaining Estimate: Not Specified
Time Spent: 3d 0.05h
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2021-06-24 at 09.02.29.png     PNG File Screenshot 2021-06-25 at 09.48.12.png     PNG File form-dialog.png    
Issue Links:
Relates
relates to MGNLUI-6099 Be more lenient regarding value type ... Closed
relates to MGNLFORM-318 Validator names in form fields unread... Closed
duplicate
is duplicated by MGNLFORM-319 StaticFormFieldDefinition not support... Closed
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: UI framework: migration and backwards compatibility
Sprint: UI FW 8
Story Points: 5

 Description   

Static field conversion is failing in dialogs. To see an example simple open the pages app and go to the page /travel/book-tour. Click the main section, edit the Form component and go to the Confirmation Email tab.



 Comments   
Comment by Mercedes Iruela [ 20/Jul/20 ]

This field needs to be migrated to the new UI: info.magnolia.module.form.fields.definition.StaticFormFieldDefinition

This issue appears in dialogs~form:form~form~tabs~tabConfirmEmail and dialogs~form:form~form~tabs~tabContactEmail

Comment by Anne Meister [ 24/Jun/21 ]

@Sang Ngo Huu

This ticket is on "fixed", but the problem still occurs in Mgnl Version 6.2.9.

Could you provide some information on the status, please?

Comment by Simon Lutz [ 25/Jun/21 ]

ameister - I cannot reproduce it on our latest version.

Could you provide more details on where the problem still occurs for you?

Thanks,
Simon

Comment by Anne Meister [ 25/Jun/21 ]

Hi Simon

When using the new Magnolia dialog structure, we can't get the field to work:

Neither with this:
freemarkerParams:
class: info.magnolia.module.form.fields.definition.StaticFormFieldDefinition
Nor with this:
freemarkerParams:
$type: staticFormField
So it does not seem to work in the new dialog structure, which we've implemented throughout the whole project.

Best, Anne

Comment by Richard Gange [ 25/Jun/21 ]

It should be staticField. Like this:

form:
  properties:
    static:
      label: Test
      $type: staticField
      value: Hello World!
Comment by Anne Meister [ 25/Jun/21 ]

Hi Richard

That does work for the dialog, but does not provide any of the freemarker params used in the form. I'd like to get the same functionality as with the old dialog structure, meaning that all fieldNames used in the form that are available for the email as freemarker parameters are displayed there. staticField does not doe that. formStaticField does not work at all.

 

Comment by Richard Gange [ 25/Jun/21 ]

Hey Anne. Let's move this to a support ticket and I'll investigate for you. I'll open one on your behalf.

Generated at Mon Feb 12 05:39:03 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.