Can we do a form with a repeatable block which has widgets and calculations ?

  • Profile Image
    CscProvidence
    Asked on June 09, 2017 at 03:02 PM

    I have to do an registration form which allows for multiple participants each with a block of fields which include a selection table/grid which is used to calculate an amount within the block.  The highest of this amount is left as is while the others have a discount applied before arriving at a total amount charge through PayPal.

    Until recently I had one instance of the table/grid (selection of sessions, a 5 daus of the week, each with 5 sessions each with 3 possible values, identical for each cell within the grid).  The first participant was full price (regardless of value) and the others had the discount applied.  No problem since everyone had the same schedule (grid selections)

    I'm now duplicating the grid for each participant (max of 4).  I will have some logic to calculate the discount to those who are elligible (all but the most expensive participant).

    I would want to have a repeatable block for as many participant as wanted.   This should save me the trouble of having to duplicate and verify each calculation for a limited number of participants per form.  Can this be done ?

    fingers crossed you have some trick up your sleeves ...

  • Profile Image
    aubreybourke
    Answered on June 09, 2017 at 04:29 PM

    There are some widgets you can use to dynamically add rows. 

    For example:

    Configurable List

    But, I think it lacks support for tables/grids.

    However the Matrix Dynamique widget has support for grids.

    Matrix Dynamique

     

     

     

     

  • Profile Image
    CscProvidence
    Answered on June 20, 2017 at 03:42 PM

    Unfortunately, both are limited to rows / grids.  I have used both for specific needs.

    However, the need is often for a more appropriate layout of the fields then a table/grid.  An example is a repeatable name/address block for people being registered as a group.  It is much cleaner to have it as a block which presents well on any device then rows in a grid being squeezed horisontally.  An other would be to have a grid (ex: schedule with weeks as rows and days of week as columns, each cell w/ dropdown of common options) within each block.  This last one is impossible in configurable lists and matrices AND would look ugly as hell if presented as a spreadsheet (a table/grid).

    I thought at one point in time I had seen a post about making a dynamic 'section' (formated block).  But I can't seem to find it.  There is so much information it is difficult to find the right search terms to find some things.  ;(

    For now, I manually repeat the 'block' using a field to unhide "new" block.  But I usually allow just four or so blocks per form.  It would be nice to have as many as the person needs without having to do morre thn defining one block and indicate minimum and maximum, like configuration lists.

  • Profile Image
    BDAVID
    Answered on June 20, 2017 at 05:28 PM

    Unfortunately, we do not have such a feature. When it comes to dynamically displaying blocks of individual fields, the only way is the one you are implemented through SHOW/HIDE conditions. And as you mentioned, it is limited to the number of block and conditions you create.