Apply data edit and add new to separate sections in a Data Form

Re: Apply data edit and add new to separate sections in a Data Form

by Itamar Tzadok -
Number of replies: 0

You can do that with views.

Fields

  • Image1
  • Image2
  • Image3
  • Image4
  • Image5
  • Textarea1
  • Textarea2
  • Textarea3
  • Textarea4

Views

  • AllSections
  • Section1
  • Section2
  • Section3
  • Section4
  • Section5

The AllSections view contains all fields but no submission buttons are enabled so that it does not allow entry editing in it. In each section in the template you can add an edit button to the target section view. Use the entryactions edit pattern for designated view

EAC:edit:viewname 

(see Dataformfield_entryactions).

You can set the section views to return after submission to the main view (in the submission settings.

As a slightly different approach you can omit the AllSections view and design all the session views to show all the fields. In each session view you can make certain fields read-only by prefixing the field pattern with !. For example (redundant spaces between brackets should be removed):

[ [!TextArea1] ]

Use the edit entry action for designated views as described above. In this approach the user will move seamlessly between views when editing sections in the entry.

hth smile