Jonathan Stamper

Forum Replies Created

Viewing 15 posts - 61 through 75 (of 91 total)
  • Author
    Posts
  • in reply to: Set Value of Auto Complete #34221
    Jonathan Stamper
    Participant

      Does setFieldValue work for a multi-select AC? I’m trying to use the logic from the manual below but I may have it in the correct format for a multi-select.

      spjs.ac.setFieldValue("AutocompleteFieldInternalName","The_Selected_Value");
      Jonathan Stamper
      Participant

        Oh cool! That should work better! Thank you so much for all the help.

        Jonathan Stamper
        Participant

          Ah-ha! I just wrapped the ac in

          
          
          window.addEventListener(‘load’, function(){
           spjs.ac.textfield({…});
          });

          That seems to have worked, unless there is a better approach.

          Jonathan Stamper
          Participant

            I got it working. I ended up just using the .css(“visibility”,”visible/hidden”) action with conditionals for the button and table.

            I couldn’t get options mentioned for spjshidden to work without it reappearing when I clicked to another tab or showing once I clicked to another tab and then returned.

            Jonathan Stamper
            Participant

              For some reason, when ran in dffs_ready, the button or table won’t show/hide initially until I go to another tab then return to the attachments. No issues in the code nor on the console. I do have the setting turned on to remember where you left off on the form. Could that be causing he issue or maybe Should put them in an onload/ready function?

              Actually as an update, I turned off the “remember” functionality but that causes me to have to click the attachments tab, click another tab then back to attachments to see the button or table.

              Jonathan Stamper
              Participant

                I think I got it. I created a button that initiates the attachment setup, creating the folders and sub folders. The only thing left is preventing the vLookup from initiating until after the attachment setup click, or would it be better to have the vLookup wrapper hidden instead and then just JQuery to show and refresh?

                Jonathan Stamper
                Participant

                  Ah ok, I thought I had seen an old post mentioning it didn’t have a rename capability. Thanks for that info.

                  For the folder creation, that may be a better idea. Have a button that “initiates” the table so it can create the folder or check if the folder is there and create if not? Trying think of how to best code that up.

                  Jonathan Stamper
                  Participant

                    That is perfect and it works! I was about to have to recreate my own upload page which I didn’t want to do so many many thanks!

                    2 more questions:

                    1. Does spjs.dffs.updateListItem have a renaming conventions for folders?
                    2. I realized that creating a folder on new item will also continue creating folders when pressing refresh or F5 on the new item form. Aside from creating an event listener on the F5 keyboard press, is there one that exists for pressing the refresh button on a browser?

                    Again thank you so much for all the help!!

                    Jonathan Stamper
                    Participant

                      I’m really close and decided to change the logic to only occur when a new item is initiated (dffs_ready).

                      1. I have it creating a folder in the child document list using the vLookupID with the “:” replaced with “_”on New Item only
                      2. I also did more research in the vLookup settings and am able to point the table settings to look at the folder destination using a global variable – {var:parentFolderName} and set that as the default.
                      3. If the user cancels the request it deletes the folder.

                      Where I’m stuck is hiding the destination folder field and choose field button that show up when adding an attachment. I was hoping a simple css removal in my custom css would do it but it’s not setting the display to none.

                      Would you have any ideas or any feedback on above or a better option?

                      in reply to: People Picker in Custom Alert #34030
                      Jonathan Stamper
                      Participant

                        Thank you and great point and tip. I managed to get the logic working for loading to the custom people picker on the alert.

                        Now I just need to work out the configurations on sending the auto emails. First time using it in DFFS and look forward to checking it out.

                        in reply to: People Picker in Custom Alert #33996
                        Jonathan Stamper
                        Participant

                          Ah, I just figured it out with where to execute the function. It’s just right below the custom alert like this:

                          
                          
                          function doEmailSend(id){
                             var htmlDiv=“<div style=‘Width:550px;’> +
                                         “<label>Select users to email</label>” +
                          “<div id=\”userEmails\”></div></div>”;
                          
                             spjs.dffs.alert({
                                 “Title”:”Email Observation”,
                                 “msg”:htmlDiv
                               …
                             });
                             $(#userEmails”).spPeoplePicker();
                          }

                          Then the people picker is set up using logic courtesy of https://www.enjoySharePoint.com/client-side-people-picker-in-sharepoint-online-using-javascript/

                          I’d still like to check to make sure that’s the best practice and if usable for collecting the email addresses and sending the emails.

                          in reply to: vLookup Child Redirect to parent edit form #33893
                          Jonathan Stamper
                          Participant

                            Yes!!! Debugging made me realize how that function works so I’m using “parentListGuid” for the New Form check and vLookup. I just need to rework my conditionals to fix it.

                            Thank you for all the help! I really appreciate it.

                            in reply to: vLookup Child Redirect to parent edit form #33887
                            Jonathan Stamper
                            Participant

                              Ah wait, the GetUrlKeyValue(“vLookupEdit”); returns “” on new form. Is there a different key value for new form?

                              in reply to: vLookup Child Redirect to parent edit form #33885
                              Jonathan Stamper
                              Participant

                                Yep! That was it. It needed to load first to catch the prefill then it went through the autocomplete successfully.

                                Awesome! Thank you so much!

                                in reply to: vLookup Child Redirect to parent edit form #33883
                                Jonathan Stamper
                                Participant

                                  Ok, so I’m doing that but for some reason when it hits the autocomplete logic on the child form it doesn’t recognize the getFieldValue(“Field I’m Passing from Parent”); within the rest filter. I did a console.log and it shows “”, but after load it appears to show.

                                  Maybe I need to wait for the form to load before passing?

                                Viewing 15 posts - 61 through 75 (of 91 total)