Hiding field until a Sales Invoice status = Submitted or Canceled

In customize form, what value should I put in the Depends On field if I want a a custom field to be hidden when a Sales Invoice is in draft mode.... in other words, it will show when the invocie is in submitted or canceled status (1 or 2)

Eval:Doc.status == 1 doesn't seem to wkr



You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Hi Laurence,

You should try this code in "Depends On" field - eval:(doc.docstatus==1 || doc.docstatus==2).
This seems to work for me.


On Fri, Jan 24, 2014 at 12:43 PM, lxnow <la...@union.ph> wrote:
In customize form, what value should I put in the Depends On field if I want a a custom field to be hidden when a Sales Invoice is in draft mode.... in other words, it will show when the invocie is in submitted or canceled status (1 or 2)

Eval:Doc.status == 1 doesn't seem to wkr



You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.





Regards,
Akhilesh Darjee
www.erpnext.com



You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

doc.docstatus not doc.status  -- thanks!  This works too: eval:doc.docstatus>0

On Friday, January 24, 2014 3:25:16 PM UTC+8, Akhilesh Darjee wrote:
Hi Laurence,

You should try this code in "Depends On" field - eval:(doc.docstatus==1 || doc.docstatus==2).
This seems to work for me.


On Fri, Jan 24, 2014 at 12:43 PM, lxnow <la...@union.ph> wrote:
In customize form, what value should I put in the Depends On field if I want a a custom field to be hidden when a Sales Invoice is in draft mode.... in other words, it will show when the invocie is in submitted or canceled status (1 or 2)

Eval:Doc.status == 1 doesn't seem to wkr



You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.





Regards,
Akhilesh Darjee



You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.