Details

    • Type: Technical Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Forms
    • Labels:
      None
    • Sprint:
      Forms_7.3_34, Forms_7.4_01, Forms_7.4_02, Forms_7.4_03

      Description

      Example on TextDDMFormFieldTypeSettings with:

      @DDMFormField(
      	label = "%field-type",
      	optionLabels = {"%single-line", "%multiple-lines"},
      	optionValues = {"singleline", "multiline"},
      	predefinedValue = "singleline", type = "radio"
      )
      public String displayStyle();
      
      @DDMFormRule(
      	actions = {
      		"setValue('autocomplete', FALSE)",
      		"setVisible('autocomplete', FALSE)"
      	},
      	condition = "not(equals(getValue('displayStyle'), 'singleline'))"
      ),
      

      In this case, we must set the displayStyle Field ID to be replaced in getValue('displayStyle')

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            carolina.barbosa Carolina Barbosa
            Recent user:
            Marcos Martins
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 32 weeks, 6 days ago

                Packages

                Version Package