Fields validate in erpnext


I want to validate my fields that some fields only appear in after the submit the record.

So, How can i validate that fields?


if you want to show fields based on the status of doctype if it is submitted or canceled
You should try this code in “Depends On” field - eval:(doc.docstatus==1 || doc.docstatus==2).

@ahmadRagheb Thanks.