Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 7.4.0 CE GA1, 7.4.1 CE GA2
    • Fix Version/s: None
    • Component/s: Forms
    • Labels:
      None

      Description

      Hi,

       

      I've got problem using forms in Liferay. The steps to reproduce issue:

      1. Create sample form using Menu > Content & Data > Forms
      2. Add two input text. Click on first input text and then click Advanced tab: change Field Reference value to "FirstName". Do nothing with second input text.
      3. Save form and publish.
      4. Add form to main page using Form widget (Home > Edit > Fragments & Widgets > Widgets > Drag & drop Form widget > Configuration > Select form created at step 1).
      5. Create sample OSGi Portlet (portlet overriding DDMFormPortlet):
      6. @Component(
        immediate = true,
        property = { "javax.portlet.name=*com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet*", "mvc.command.name=*/dynamic_data_mapping_form/add_form_instance_record*", "service.ranking:Integer=100" }

        ,
        service = MVCActionCommand.class
        )

      7. Implement / override doProcessAction method and add code: ParamUtil.print(request); to print information about request and field provided in form we created above.
      8. Build and deploy portlet
      9. Back to browser and fill in sample form (created at step 1), then click Submit button.
      10. Preview liferay log for portlet deployed at step 8.
      11. You should pay attention to lines contains data you provided in form.
      12. In my sample form:
      13. ddm$$Text63450265$2IgIg8fB$0$$en_US[0] = test1
      14. ddm$$Text78318838$kVo4bZ5B$0$$en_US[0] = test2

      The question is: why fields has names Text63450265, Text78318838 which is not comfortable to use for programmers? Is it possible that this names has human readable field name, eg. using Fiel dReference (step 2)?

      Because I fill out Field Reference as "FirstName" then I supposed to have field name:

      1. ddm$$FirstName$2IgIg8fB$0$$en_US[0] = test1 not ddm$$Text63450265$2IgIg8fB$0$$en_US[0] = test1

       

      Best regards

      Tomasz

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            tomasz.kolodziej Tomasz Kołodziej
            Participants of an Issue:
            Recent user:
            Carolina Barbosa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 weeks, 5 days ago

                Packages

                Version Package