Forum Replies Created
-
AuthorPosts
-
I also have no other Rules that are hiding or showing specific tab indexes, so that cannot be overruling it either.
It appears that there may be a bug in the DFFS solution. (I will add my code below). What I am seeing is, when the user clicks “Complete & Send”, and it changes the field value to “Completed” and runs the rule validation. If not all required fields are completed, there is an alert stating “Additional Fields are Required”, and then it changes the field back to “In Progress”.
The user should then be able to continue completing the form and be allowed to either “Save” or “Complete & Send”. If a normal “Save” is clicked, the rule validation should not apply because the field is still marked as “In Progress”. However, the rule is still being applied and requiring all fields that are listed within the rule. How can the rule be reversed after it has been applied?I have tried to create an additional rule that explicitly states the fields are Optional, but that still has not worked.
(function(){ var b = [""]; b.push("<td class='ms-toolbar' nowrap='nowrap'>"); b.push("<input type='button' class='ms-ButtonHeightWidth' value='Complete & Send' onclick='finalSave();' />"); b.push("</td>"); b.push("<td class='ms-separator'> </td>"); $("input[id$=diidIOSaveItem]:last").parents("table:first").parents("td:first").before(b.join("")); })(); function finalSave(){ setFieldValue("FinalSave","Completed"); var rStat = spjs.dffs.data.ruleIndexObj[1]; if (rStat == true){ $("input[id$=diidIOSaveItem]:last").click(); }else{ alert("There Are Additional Fields That Are Required"); $('[id$="FinalSave"] span input:checked').click() setFieldValue("FinalSave","In Progress"); } }
Got it working, thank you!
Sorry, I got it to work now. Thank you for all your help!
(function(){ var b = [""]; b.push("<td class='ms-toolbar' nowrap='nowrap'>"); b.push("<input type='button' class='ms-ButtonHeightWidth' value='Final Save' onclick='finalSave();' />"); b.push("</td>"); b.push("<td class='ms-separator'> </td>"); $("input[id$=diidIOSaveItem]:last").parents("table:first").parents("td:first").before(b.join("")); })(); function finalSave(){ setFieldValue("FinalSave","Completed"); $("input[id$=diidIOSaveItem]:last").click(); }
I have added this to the Custom JS and attached is what it displays on the screen.
Attachments:
Would it be possible to add another button to the dialog box at the bottom that would accomplish this functionality then? So next to the default “Save” and “Cancel” buttons, there would be another button that would be “Final Save”. The “Final Save” button would have the exact same functionality as the normal “Save”, but it would also change an additional Choice column (titled “Final Save”) to “Completed”.
Is this possible?
Sorry I may not have clarified well enough. The form is something they fill out continuously throughout their shifts. What they are asking for is a Pre-Save, and Final-Save. So when they click the normal Save button, the dialog box would appear asking “Is this form Complete or still In Progress?” If “In Progress”, it would mark a Save Status (choice column with options of “Complete” or “In Progress”) field as In Progress. They can then open the form back up and fill out until they mark it as Completed, which will then trigger an alert.
So basically, I need to show a regular List choice column within the dialog box when they press save.
Is this possible?
I have figured this out using the buttons on the form within the Heading field which calls a JS function. Thanks for the response!
A SharePoint List of all the Yes/No columns and another list of all the corresponding Comments columns? Do they need to have matching ID values for each corresponding set of fields?
I have put this class into the “Field CSS” backend, and taken it out of the Misc tab and this still does not work, as it still expands to the right as far as needed. I will screenshot the configuration.
The first is the set up in the Field CSS tab, and the second is the Misc tab.
Attachments:
Utilizing that CSS class, it restricts the width of the text box boundary, but now the text exceeds the boundary and just keeps going to the right. See screenshot attached. I am using SP2010 currently as well.
Attachments:
-
AuthorPosts