How can we make each row in Matrix Dynamique widget be unique - different from the other?

  • bbcflagfootball
    Asked on March 14, 2015 at 11:28 AM

    When I insert a table/matrix into a form there are three options in the properties regarding what can be required in the rows/cells, and the one option I need seems to be missing. I am trying to avoid having users put the same answer in every row. Is that possible to do? How can I do it? Thanks.

  • raul
    Replied on March 14, 2015 at 4:12 PM

    I was unable to see your recent forms since they're disabled now, but from what I understand you want to prevent your users to enter the same text on a matrix dynamique widget, is that correct?

    If so, unfortunately, this is not possible to achieve within the form builder. On this case, you would need to use the full source code of your form and use a custom script similar to the one provided here: http://codereview.stackexchange.com/questions/60128/removing-duplicates-from-an-array-quickly to find duplicates on the fields on the table.

    If you require further assistance, please let us know.
    Best Regards.

  • bbcflagfootball
    Replied on March 15, 2015 at 1:34 AM

    Thank you.

  • Ben
    Replied on March 15, 2015 at 2:44 AM

    In my colleague's name you are welcome.