Blueprint Form Field twice


#1

hi,

i was just playing around with some formfields. I tried to display current content of a field and show the override content of a field seperated like this:

  update:
    label:    Last Edit
    type:     datetime
    width:    1/2
    readonly: true
  update:
    label:    Will be overwritten by
    type:     datetime
    width:    1/2
    default:  now
    override: true
    time:
      interval: 1

this does not work… only the second field is shown in the panel… i think it is not possible to show two fields with the same name at the same time?

but how to display content of a field beside the new values?


#3

That’s right, you can’t use the same field name twice. The only way to achieve that would be to save the current content of the field on save to a new field with another name using a page update hook.

 update_original:
    label:    Last Edit
    type:     datetime
    width:    1/2
    readonly: true
  update:
    label:    Will be overwritten by
    type:     datetime
    width:    1/2
    default:  now
    override: true
    time:
      interval: 1