Value of a field in constraint_message

Is it possible to put a value in the constraint_message. I have tried using ${field} to place the value within the message but it is outputting xml path in the form. Is it even supported?

Not sure what XLSForm does.

In the XML, the constraint message can be a formula (like a calculate). So
you can do:

... jr:constraintMsg=" 'Did you mean ' + /data/fieldB + ' or something
else?' " ...

So try entering this in Excel (note that there are two leading single
quotes to keep Excel happy)

''Did you mean' + ${fieldB} + ' or something else?'

ยทยทยท On Wed, Dec 10, 2014 at 3:29 AM, Mandy1 wrote: > > Is it possible to put a value in the constraint_message. I have tried > using ${field} to place the value within the message but it is outputting > xml path in the form. Is it even supported? > > -- > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "ODK Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to opendatakit+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. >

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com