I am adding a follow-up. A request can be in a certain status (field on the form). The request could be moving through a workflow, but is stopped at a point, waiting for something to be completed before moving on. The end user working the request, may go into the request and add a comment for documentation purposes. Upon hitting 'Submit' the status field is cleared out (not just on the form, but in the actual list).
The issue is getting worse (happening more and more often), that the status field is being cleared out upon hitting 'Submit' on the form after editing.
Any help in addressing what is causing this to happen and how to resolve it would be greatly appreciated!
Thank you.
so do you mean the field gets cleared by the form itself, even without running workflow?
once you open the form for edit, can you see actual value from the list item on the form?
what's the type of Status field? can you post it's configuration?
do you have any javascript code on the form that may manipulated Status form control value?
do you have by any chance multiple form controls connected to the Status list field?
yes, the request could be in the middle of a workflow, or no workflow at all.
After submitting and it gets cleared out, going back into the form, the value is not displayed. It's like it resets itself back to blank.
The field is a standard Choice field, Drop Down style. It does not allow fill-ins, and the field is not required. (Screen Shots of setup below.)
We do have some custom JavaScript for this control. It disables some of the options so the end user cannot select them. The disabled options are set by the workflows.
When you say multiple form controls, please expand? I have rules on my form to hide or require certain fields depending on the particular status selected.
Thank you for your help!
After submitting and it gets cleared out, going back into the form, the value is not displayed
I meant it
- check the status value in list view
- open item in edit form => does the status value show? the same value value as in list view?
- save/submit the form => check the value in list view - does the value show? the same value?
We do have some custom JavaScript for this control. It disables some of the options so the end user cannot select them. The disabled options are set by the workflows.
it's known that nintex need not to save disabled/hidden controls.
do you disable actual status value as well?
can you try whether it gets cleared without javascript in place?
When you say multiple form controls, please expand?
do you eg. have status field/control twice on the form? eg. on different tabs, or one at the top of the form and other one at the bottom, do you have connected a button to status field (as well), etc.
Status in list matches status showing on Form. Once an edit to the form is made, and user hits 'Submit'. Status is list as well as on form is "reset" to blank.
Below is what the status drop down looks like on the form. Notice There are statuses which are lighter in color, those have been essentially disabled by the JavaScript code (image in earlier response). The lighter values are the statuses that are set by workflows. They are essentially disabled from being selected from Form view. I can select the all status values in List View(this is how I am currently "fixing" the issue when a status is cleared out).
We have not tried taking out the JavaScript code to see if the statuses clear out or not, mainly because we wanted to first know if the JavaScript is causing the issue or not. We do not want users selecting certain statuses. If we enable the statuses, the end users will end up selecting them, which will cause workflow issues.
There is only 1 status field on the form.
Thank you.
I believe I have resolved the issue. I added some customer JavaScript to the Save button.
Upon hitting 'Save', the first thing that is done, is all the Status options that are disabled I re-enable. So far, statuses are no longer clearing out upon hitting 'Save'.
Abbreviated Code added to 'Save' button:
NWF$(document).ready(function(){
NWF$('.OverallStatus option value="Final DocuSign Prep"]').prop('disabled',false);
})
so it looks like the value got cleared because of actual option value was disabled, as I mentioned above
Abbreviated Code
note if you want to change a property of all the option you need not to address each one separately.
you can change all of them with single call like
NWF$('.OverallStatus option').prop('disabled',false);
Thank you, Marian! Yes, that would be simpler, but not all status value options I want disabled...only certain ones, which is why I had to go the route I did with the coding.
Thank you for your help!!