Problem with OnAdd-OnSuccess workflow

Problem with OnAdd-OnSuccess workflow


Dear Team, 

I'm developing an application to generate Quotation ID. First thing, the Auto Number does not accepting prefix zero (Ex.001). So I was surfing the blog and found below post.

https://help.zoho.com/portal/en/community/topic/auto-generated-number-field-with-prefix

I have added the code in the OnAdd-OnSuccess Form Action, but when saving the entry, the code is not generated. I've tried the same logic with a formula field, and it works, but could not use one formula field in another formula field with concatenation. 

I need my quote number to be generated as "NSQ"+Shortid+"001"(counter field)+etc.....
Ex. NSQSM005 - 17

My project link is

https://app.zohocreator.com/neosmartllp/neosmart-d-s-llp#Project_Checklist


Thanks in Advance !!

Ramya R.