V11 Dynamically Computing Default Values for Fields When Adding a New Row to a Repeating Section

Uploaded on Aug 16, 2013 / 152 views / 906 impressions / 0 comments

alpha01803

More from this user

Description

D69 Alpha Five V11 Repeating section dynamically computed values when adding repeating section rows

When the user clicks the plus key to add a new row to a Repeating Section, the new row is populated with any default values that were defined for each field. If any default value was specified using an expression, the expression is evaluated when the component is initially rendered (not when each new row is added). This means that every new row that is added by the user will have the same default values. You might want each new row to have a dynamically computed default value. This video discusses how to make an Ajax callback each time the user adds a new row, to compute default values for fields in the Repeating Section.

Tags

  • Alpha Five V11
  • ftp