Hi, I'm trying to create a form with the following yaml (partial) definition:
[code]
editor:
      wide: true
      actions:
        - name: commit
        - name: cancel
      form:
        tabs:
          - name: english
            label: Answer
            fields:
              - name: jcr:uuid
                class: 
info.magnolia.ui.form.field.definition.TextFieldDefinition
                label: Answer ID
                readOnly: true
              - name: questionID
                remoteField: jcr:uuid
                remoteWorkspace: qna
                class: 
com.sharecare.cms.publishing.commons.ui.taglib.prefilledtext.PrefilledTextFiledDefinition
                label: Question ID
                editable: false
#                readOnly: true (when this is set to true, the field stops 
auto-populating from workspace)
              - name: questionText
                remoteWorkspace: qna
                remoteField: text
                class: 
com.sharecare.cms.publishing.commons.ui.taglib.prefilledtext.PrefilledTextFiledDefinition
                label: Question Text
                editable: false
#                readOnly: true (when this is set to true, the field stops 
auto-populating from workspace)
              - name: text
                class: 
info.magnolia.ui.form.field.definition.RichTextFieldDefinition
                label: Answer Text
[/code]

As I noted in this code, when I add the "readOnly" field, the form's questionID 
and questionText fields stop auto-populating in the form, but do make the field 
read-only. 
Is there any way to achieve both a disabled state of the input field and to 
auto-populate it with the remote workspace's text as I do with the Answer ID?

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=6d5c8aeb-ba7c-468c-a80f-2ab8b33d9113


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to