Paul Heffner

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • Paul Heffner
    Participant

      Worked like a charm sir! I tried to add border-color as well as

      border-color: #FF00FF but it is still black. can we adjust that too?

      in reply to: Check Note field and replace value #35829
      Paul Heffner
      Participant

        Thanks again. The currUserInfo wasnt working but I did use spjs.utility.userprofile().preferredname

        in reply to: Check Note field and replace value #35827
        Paul Heffner
        Participant

          You have been awesome but on last question. If I was using {currentUser} and timestamp in the rule, how does that translate into the JS?

          in reply to: Check Note field and replace value #35825
          Paul Heffner
          Participant

            That seems to work but still having an issue. I have another rule that appends the NewComment field to historical comments. It is set to trigger on form save. I think that is triggering first, so in the historical comments I see /Intro but I do now see the updated New Comment.

            I just need the PreSave action to fire off before the rule save trigger. Or a better way to do this

            Just adding some context. We use to use a field that would append on its own in SharePoint but it wouldn’t export and ended up doing this other method. NewComment is only there to provide a space to put info that then gets appended to historical comments.

            in reply to: Check Note field and replace value #35808
            Paul Heffner
            Participant

              function dffs_PreSaveAction() {

                  var html = getFieldValue(“NewComment”);

                              var sc = jQuery(html).text();

                  if(sc === “/Intro”){

                      setFieldValue(“NewComment”,”<p>Your request is now in progress. Please keep an eye on your e-mail for additional communication from BSE Reporting & Insights. If we have any additional questions about your request we will contact you through this form as well. You can also add comments to this request if you have any questions or additional information to provide and we will automatically be notified.</p>”);

                  }

                  return true;

              }

              in reply to: Check Note field and replace value #35805
              Paul Heffner
              Participant

                this is the error:

                Uncaught Error: Syntax error, unrecognized expression: /Intro<br>

                    at Function.fa.error (jQuery.js?v=1618860436703:2:12733)

                    at fa.tokenize (jQuery.js?v=1618860436703:2:18786)

                    at fa.select (jQuery.js?v=1618860436703:2:21594)

                    at Function.fa [as find] (jQuery.js?v=1618860436703:2:7320)

                    at n.fn.init.find (jQuery.js?v=1618860436703:2:24109)

                    at new n.fn.init (jQuery.js?v=1618860436703:2:24676)

                    at n (jQuery.js?v=1618860436703:2:406)

                    at dffs_PreSaveAction (eval at <anonymous> (jQuery.js?v=1618860436703:2:2651), <anonymous>:5:11)

                    at PreSaveItem (eval at <anonymous> (DFFS_frontend_min.js:9:1), <anonymous>:1:271281)

                    at HTMLInputElement.onclick (EditForm.aspx?ID=3691&Source=http%3A%2F%2Fsharepoint2.bankofamerica.com%2Fsites%2FCCSSMandR%2FMIS%2FLists%2FCCSS%20MIS%20Request%20Form%2FPersonalViews.aspx%3FPageView%3DPersonal%26ShowWebPart%3D{D510D88B-5708-477A-B27F-2EFEC05DD796}:1654:710)

                fa.error @ jQuery.js?v=1618860436703:2

                fa.tokenize @ jQuery.js?v=1618860436703:2

                fa.select @ jQuery.js?v=1618860436703:2

                fa @ jQuery.js?v=1618860436703:2

                find @ jQuery.js?v=1618860436703:2

                n.fn.init @ jQuery.js?v=1618860436703:2

                n @ jQuery.js?v=1618860436703:2

                dffs_PreSaveAction @ VM1646:5

                PreSaveItem @ VM1617:1

                onclick @ EditForm.aspx?ID=3691&Source=http%3A%2F%2Fsharepoint2.bankofamerica.com%2Fsites%2FCCSSMandR%2FMIS%2FLists%2FCCSS%20MIS%20Request%20Form%2FPersonalViews.aspx%3FPageView%3DPersonal%26ShowWebPart%3D{D510D88B-5708-477A-B27F-2EFEC05DD796}:1654

                in reply to: Check Note field and replace value #35795
                Paul Heffner
                Participant

                  Does it make a difference if it is an enhanced rich text?

                  First test didnt work quit right

                  in reply to: Check Note field and replace value #35792
                  Paul Heffner
                  Participant

                    It is a rich text field and I want it if the field is only /intro

                    in reply to: Parsing Autocomplete #33862
                    Paul Heffner
                    Participant

                      OMG…so close and i was done in by a plus sign.

                      Thank You so much

                      in reply to: Set field value to yyyymm of date field in form #33754
                      Paul Heffner
                      Participant

                        I am getting the error the objext doesnt support padStart

                        in reply to: Can’t seem to get vLookup to work #33299
                        Paul Heffner
                        Participant

                          Sorry for the long wait for a reply. I got it working. Silly mistake on my part. Thank you as always!

                          in reply to: Can’t seem to get vLookup to work #33278
                          Paul Heffner
                          Participant

                            I added a new folder under SPJS for the new version, I am now using the new installer. I uninstalled DFFS on all 3 forms for both lists and reinstalled from loader 2.

                            I didnt have to update any settings and all the options look correct but still no parent/child showing up in the form.

                            Looks completly normal and still works so that is a plus

                            Paul Heffner
                            Participant

                              Worked like a charm. Sorry for completley glossing over that field.

                              Paul Heffner
                              Participant
                                
                                
                                spjs.ac.textField({
                                
                                "applyTo": "Title",
                                
                                "helpText": "",
                                
                                "loadText": "",
                                
                                "listGuid": "{c7d70902-b17b-4cd1-bd33-6fd55219de3e}",
                                
                                "listBaseUrl": "/sites/CCSSMandR/MIS",
                                
                                "showField": "Title",
                                
                                "searchFields": [],
                                
                                "filterCAML": "",
                                
                                "useREST": false,
                                
                                "preloadData":false,
                                
                                "filterREST": "",
                                
                                "optionDetailFields": [],
                                
                                "optionDetailPrefix": [],
                                
                                "enforceUniqueValues": false,
                                
                                "rowLimit": 15,
                                
                                "listOptionsOnFocus": false,
                                
                                "minLengthBeforeSearch": 4,
                                
                                "reValidateOnLoad": false,
                                
                                "allowAddNew": true,
                                
                                "addToFolder": null,
                                
                                "isLookupInSelf": true,
                                
                                "addNewAdditionalFields": [],
                                
                                "multiselect": false,
                                
                                "multiselectSeparator": "; ",
                                
                                "orderBy": [],
                                
                                "clearSetFieldsOnInvalidSelection": false,
                                
                                "setFields": [],
                                
                                "debug": false
                                
                                });

                                All fields are single line text.

                                Paul Heffner
                                Participant

                                  Sorry for the double post but I have some Custom JS so the user can start typing the VQName and it will return a list matching what they type.

                                Viewing 15 posts - 1 through 15 (of 20 total)