Set Summary to replace default "Edit" with answers of your repeat group

In this article we will give an overview of changing the default "Edit" text on the button for a repeat group.

How to change the "Edit" text on the button

By default, our Mobile Forms client will display an "Edit" button to represent answers to the repeat group questions. This text is customizable however; one reason you may want to do this is to differentiate between the different answers, per set, without having to drill into each one. Here we'll show you how to do it:

 

Open the form in the designer and toggle the "Show Advanced"

 

 

Click "Set Summary"

 

 

Now build your summary expression

 

 

Remember you can always use the function builder via the "Add Function" button to help.

Concatenate is useful here, but consider using IF -> THEN -> ELSE type expressions to make this even more powerful. Another idea would be to compute the line item subtotal (qty x unit cost) and display this in the summary expression.

Conclusion

It's a bit difficult to find, but setting these expressions really helps with usability for your people in the field. We hope you find this guide useful - we look forward to hearing your comments. 

This concludes our overview of the Set Summary feature.  If you have any questions or comments feel free to send us a message at support@devicemagic.com or leave us a comment below.

 

Have more questions? Submit a request

Comments

  • Avatar
    Jennifer Lainson

    Just tried this and it worked! Thank you!

  • Avatar
    Madhu

    This is great!

    Is it possible to change the text of the "Add Answer" button? 

  • Avatar
    dusanb

    Sorry currently you can't modify the Add Answer button text.

  • Avatar
    Mike Micallef

    Anything further on the ability to change the "Add Answer" button text?

  • Avatar
    mikew

    Mike,

    Unfortunately it's not yet possible.

    What would you be looking to change it to? A fixed piece of text, or dynamic text based on answers within the form?

    Mike

  • Avatar
    Matthias Zubke

    Hello Mike,
    I am new to here.
    For me it would urgently make sense to change the text at least a editable text, better of course dynamic.
    The same applys to Open in the Sub-Forms, the Edit before first time entry.
    What is with all the other fixed texts like Done, set the time etc.?
    Can they be set at all?
    How to handle other languages?
    Is this foreseen? I am from Germany and my first languages for the tests will need to be in german and then I need to translate the form in the other languages for international use.

  • Avatar
    mikew

    Hi Matthias,

    Unfortunately we've not yet translated our apps into German.

    It is something we will do, but I don't by when. It will certainly not be in 2014.

    Are you looking to use iOS devices, Android devices, or both?

    Mike

  • Avatar
    Secure All Security

    Hi Mike, Dusan

    I've got a repeat group for repeat-logging of time / location / comment.
    I'm trying to change the Edit Button text to show time and location, for example:
    23:55 at Access point 14

    The expression:
    CONCATENATE(Time," at ", Location)
    seems valid, but produces no result on the Edit button.

    CONCATENATE(Comment," at ", Location) works fine.
    Is this because Time is a different data type to the text of Location and Comment?
    More importantly, is there a way to fix it?

    Thanks
    Pat

  • Avatar
    dusanb

    Hey Pat,

    This works fine for me. Is your app up to date? I've provided a very basic version of a form that CONCATs the time, location and some text:

    {
    "type": "root",
    "children": [
    {
    "identifier": "Customer_Name",
    "title": "Customer Name",
    "autoIdentifier": true,
    "type": "text"
    },
    {
    "type": "group",
    "autoIdentifier": true,
    "children": [
    {
    "identifier": "Time_Question",
    "title": "Time Question",
    "autoIdentifier": true,
    "type": "time"
    },
    {
    "identifier": "Location_Question",
    "title": "Location Question",
    "autoIdentifier": true,
    "type": "location"
    },
    {
    "identifier": "Comment",
    "title": "Comment",
    "autoIdentifier": true,
    "type": "text"
    }
    ],
    "title": "Time and comments",
    "identifier": "Time_and_comments",
    "summary_expr": "CONCATENATE(Time_Question,\": \",Comment,\"@\",Location_Question)"
    }
    ],
    "title": "Repeat Group Summaries"
    }

    Regards,

Powered by Zendesk