<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">
<br>
</span>I see what's happening here - I suspect that your field is set to use<br>
a "text edit" edit widget rather than a "range" widget (check the<br>
layer properties->fields tab). QGIS only uses spin boxes for the edit<br>
widget if it's set to a range widget, otherwise they are just standard<br>
text boxes which don't accept expressions (yet -- I'll try and tackle<br>
that at some stage).<br>
<span class=""><font color="#888888"><br>
</font></span></blockquote></div><br>You are right Nyall, with the range widget, operations work both in the attribute table cells and in forms fields!<br><br><br></div><div class="gmail_extra">Thanks!<br></div><div class="gmail_extra">Pedro<br></div><div class="gmail_extra"><br></div></div>