This might sound silly. But I can't seem to decode the decisions on a task form? I saw that some of you go to the database and get those codes. But I have for each task form different decisions. I basically want to put a rule on the task form to validate only if the decision is anything else but "reject".
I tried to display the task list in a datasheet view with the outcome, hoping that I can see the codes. Same as it is for the Workflow status field. But nope, it didn't show the codes, it showed actual values.
Is there anyway I can make rules without using the codes or is there anyway I can find those codes without having to check the database tables??
simply add calculated control value on task form and set its formula to Decision control.
run the form (not preview!) and select single decision options. calc value control will show you its value.
If you just wanna plonk in some code that will allow you to validate against the verbiage of whatever you have set as selectable outcomes for the Flexi Task, you could use something along the lines of:
NWF$("#" + DecisionID).find("input:checked").siblings("label").text() === "RejectOrWhatever";
(This was taken from a thread over here: https://community.nintex.com/thread/16251-understanding-validation#comment-62687)
In this instance I have used the name 'DecisionID' as shown in the code near the top of this post.