What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Pulling matrix fields for the email notification

    Asked by prolinksoftware on November 28, 2016 at 05:49 PM

    Hi there,

    I notice that you have the form fields for inclusion into a notification email, but I'm trying to parse the email responses programmatically. So the issue is that we have a matrix called {matrix} where someone fills out responses from Very Negative to Very Positive. Unfortunately when you embed {matrix} into your email notification, it comes through as an HTML table with green checkmarks.. cute for a human, but a pain for a computer.

    Within our matrix are 5 rows and 5 columns. I notice that there are sub-fields called #input_0_0 - #input_4_4, etc, but nowhere in the documentation does it say where I can use them.

    Can we refer to these directly to get the 1/0 flag out of them? Maybe in the curly braces? {matrix:#input_0_1}?

    Basically I would like to get readable text out of the email notification. Also, clearly the two numbers represent the row and column of the input, but there isn't any documentation that tells me which number refers to which. Therefore, is the first number representing the row or the column?

    Thanks.

    Jason

     

    email notification email matrix fields for
  • Profile Image
    JotForm Support

    Answered by BDAVID on November 28, 2016 at 07:43 PM

    This is not possible, however, you can get the values in separate fields, example:

    1) Add a Form Calculation widget and label it according to the option you want to capture:

    2) Click on its wand icon and obtain the option, example:

    3) Preview your form, and you will notice that it will obtain the value selected:

    Repeat the steps for the other options in the matrix field. In that way, you will be able to manage them in the notification:

    Also, you can hide all the Form Calculation widgets, so the user will only see the matrix:

    Let us know if you need more help, we will be glad to assist you.