I want make several status

I am not using autoform or schema, I want to make status like status=1 (new), status=2 (inprogress) and status=3 (success). is there anything i can make it or how it can be done.

It’s not possible to understand what you are doing, what you want to accomplish nor what you would like from us. I suggest posting your question on StackOverflow with proper details.

1 Like

Maybe this will help you?


var status = 1;

if (status === 1) {
  // new
} else if (status === 2) {
  // in progress
} else if (status === 3) {
  // success

But seriously, you need to be able to tell us what you’re trying to achieve and provide an example of what you’ve tried if you want help