• Resolved slandoulsi

    (@slandoulsi)


    Hi,

    I understand that calculated fields form plugin has a icon for duplicating fields.

    However, I would like the user to be able to duplicate and delete group of fields to no more than 50 times by simply clicking a button.

    Does anyone see how to do that by using the HTML field ?

    Best Regards,
    SkL

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    Sorry for the late, after the modifications in the WordPress forum, I have not been receiving the notifications for new entries.

    Are you talking about duplicate the fields at runtime or in the forms builder?

    If you want duplicate a group of fields in the form builder, you should insert them into a container (a DIV or Fieldset field) and duplicate the container, of course, if you are using calculated fields into the container with its corresponding equations, or dependencies, you should correct them in the duplicated fields.

    But if you want duplicate the fields at runtime, I’m sorry, but in the current version of the plugin it is not possible, the plugin is not able to determine at runtime what are the equations of the new calculated fields or the dependencies between fields, or for example, if each duplicated field is considered as a subtotal, it is not possible modify the equation of the calculated field used to get the total to include the new fields.

    So, I recommend:
    – Create all possible fields at design time,
    – and display or hide them at runtime using dependencies.

    Best regards.

    Thread Starter slandoulsi

    (@slandoulsi)

    Hi,

    Thanks for your answer.

    I started thinking about adding some html/js when I realized that the “dublicate” function of the form builder was not working so well with complex containers: I have a +60 fields fieldset container with some of them being calculated fields, clicking on the duplicate icon sometimes duplicates only some of the items, sometimes none. Duplicating this fieldset 50 times in such conditions was just impossible.

    I was wondering if a third option could’nt work since I don’t know if you can help me with the previous. If I insert the fieldset in a standalone form and clone it 50 times, would I be able to create dependencies between the forms ?

    Best regards,
    SkL

    Plugin Author codepeople

    (@codepeople)

    Hi @slandoulsi,

    Could you tell me what version of the plugin are you using, and send me the link to the webpage where the form is inserted to check the fields into the container, please?

    About your request for nesting forms, I’m sorry, but it is not possible because in HTML you cannot nest forms.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Duplicating and deleting fields’ is closed to new replies.