Kyle Vaske

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: Hide Tab Based On Permissions Group #9825
    Kyle Vaske
    Participant

    I also have no other Rules that are hiding or showing specific tab indexes, so that cannot be overruling it either.

    in reply to: Rule Validation #9434
    Kyle Vaske
    Participant

    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'>&nbsp;</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");
        }
    }
    in reply to: Rule Validation #9396
    Kyle Vaske
    Participant

    Got it working, thank you!

    in reply to: Save Message Dialog Box #6721
    Kyle Vaske
    Participant

    Sorry, I got it to work now. Thank you for all your help!

    in reply to: Save Message Dialog Box #6718
    Kyle Vaske
    Participant
    
    
    (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'>&nbsp;</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:
    in reply to: Save Message Dialog Box #6709
    Kyle Vaske
    Participant

    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?

    in reply to: Save Message Dialog Box #6661
    Kyle Vaske
    Participant

    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?

    in reply to: Hyperlink On List Form #6427
    Kyle Vaske
    Participant

    I have figured this out using the buttons on the form within the Heading field which calls a JS function. Thanks for the response!

    in reply to: Rules Limitation? #6422
    Kyle Vaske
    Participant

    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?

    in reply to: Multi-Lines of Text Word Wrap #6333
    Kyle Vaske
    Participant

    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.

    in reply to: Multi-Lines of Text Word Wrap #6232
    Kyle Vaske
    Participant

    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:
Viewing 11 posts - 1 through 11 (of 11 total)