Default Form Value For Dynamic Enum
I’ve created a form property that is using a dynamic enum type. The dynamic enum is populated from a map. The dropdown works, however I can’t seem to figure out how to have a default value. Is it possible to have a default value when using a dynamicenum? I’ve attached my form config.
chrislynch
Posted 4 years ago · Edited 1 year ago·Last reply 4 years ago
5 comments
alvinuseree
·4 years ago · EditedI just gave it a try with a test workflow and it worked fine for me (without required True).
Be mindful that the default value should the one of the keys in your map and not the value .e.g
In the above example, the default value would need to be set as “CandID” and not “Candidate”
alvinuseree
·4 years ago · EditedI just gave it a try with a test workflow and it worked fine for me (without required True).
Be mindful that the default value should the one of the keys in your map and not the value .e.g
In the above example, the default value would need to be set as “CandID” and not “Candidate”
chrislynch
OP4 years ago · EditedAh I see now. I was able to get it to work. Thanks for the help Alvin
arthurburkhardt
·4 years ago · EditedI think you need to set the “required” property to
trueif you want the default to be taken into account.Another possibility is to set the variable in a script task before the user task
chrislynch
OP4 years ago · EditedI tried setting the field to required but still no luck. I also tried setting the status variable in a prior script with no luck.