Hi Jamian,
1. If your weight field is called `weight` (original!), referring to the
value of the field on the same row is simply done with `$weight`. However
the expression is a little more complicated if you want to access the weight
field on the previous row: `../preceding-sibling::*[1]/weight`. And say you
want to show "n/a" if you are on the first row then the expression becomes:
if (exists(../preceding-sibling::*[1]))
then $weight - ../preceding-sibling::*[1]/weight
else 'n/a'
See below for what this would look like at runtime, and for the source of a
form you can paste in Form Builder.
weigh-gain-loss.png
<
http://discuss.orbeon.com/file/t119778/weigh-gain-loss.png>
form.xml <
http://discuss.orbeon.com/file/t119778/form.xml>
2. Unfortunately, at this point this is not customizable, however I added a
plus one from you on the issue #4166 linked below.
https://github.com/orbeon/orbeon-forms/issues/4166
-Alex
-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from:
http://discuss.orbeon.com/