Therman

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • in reply to: Have the child item populate the parent #28594
    Therman
    Participant

      Hey Thanks for the help, Alexander. I tried this, but it didn’t work.
      For some context:
      1 – the field that I’m trying to update is a multiline field
      2 – I open the child newform from the parent editform

      Do any of these factors make a difference?

      in reply to: Can’t add multiple documents #28538
      Therman
      Participant

        Works the same in both browsers and yes the folder was created successfully.
        When it first happened a JavaScript error window appeared. I didn’t capture that message. I’ll replicate the issue and get the error message to you.

        in reply to: Can’t add multiple documents #28286
        Therman
        Participant

          Nice! That worked. Thanks. When I click the up arrow next to the folder, it brings up an upload screen. However, when I click the open folder a pop-up shows up real quick and then goes away. Do you know what that could be?

          in reply to: Set the value of a Cascading dropdown field #27324
          Therman
          Participant

            How would I write that line of code you suggested on the rules tab? Do I choose my field from the drop-down and write your suggestion in the value field?

            in reply to: Set the value of a Cascading dropdown field #27318
            Therman
            Participant

              So it looks like “EventCommandLookup” is working like normal. I actually had my value misspelled. But “EventOrgLookup” isn’t working.

              in reply to: Using buttons to "sign" #27316
              Therman
              Participant

                good deal. Thanks!

                in reply to: Using buttons to "sign" #27279
                Therman
                Participant

                  Worked perfectly. Thanks.

                  I have four buttons for signature on my form.
                  Should I create 4 functions and apply to each button? Like this:

                  
                  
                  function signDir(){
                    var user = spjs.utility.userInfo(_spPageContextInfo.userId);
                    setFieldValue("DirectorSignature", user.Title + " " + new Date().toLocaleString(_spPageContextInfo.currentUICultureName));
                  }
                  
                  
                  function signG1(){
                    var user = spjs.utility.userInfo(_spPageContextInfo.userId);
                    setFieldValue("G1_Signature", user.Title + " " + new Date().toLocaleString(_spPageContextInfo.currentUICultureName));
                  }
                  
                  
                  function signG8(){
                    var user = spjs.utility.userInfo(_spPageContextInfo.userId);
                    setFieldValue("G8_Signature", user.Title + " " + new Date().toLocaleString(_spPageContextInfo.currentUICultureName));
                  }
                  
                  
                  function signCos(){
                    var user = spjs.utility.userInfo(_spPageContextInfo.userId);
                    setFieldValue("CoS_Signature", user.Title + " " + new Date().toLocaleString(_spPageContextInfo.currentUICultureName));
                  }

                  Or is their a best practice to write all of this?

                  • This reply was modified 5 years, 2 months ago by Therman.
                  • This reply was modified 5 years, 2 months ago by Therman.
                  in reply to: Using buttons to "sign" #27250
                  Therman
                  Participant

                    Hey Alex, is it possible to maybe make the signature a username and date/time?
                    Maybe like this” “Last Name, First Name – 1 OCT 2019 – 11:26 AM”.

                    in reply to: Using buttons to "sign" #27248
                    Therman
                    Participant

                      worked like a charm. thanks!

                      in reply to: Using buttons to "sign" #27244
                      Therman
                      Participant

                        Thanks!

                        When I put this in the HTML:
                        `<button onclick=”signForm()”>Click to Sign</button>’

                        And put this in the custom JS:
                        ‘function signForm(){
                        var user = spjs.utility.userInfo(_spPageContextInfo.userId);
                        setFieldValue(“DirectorSignature”, user.Title);
                        }’

                        It works, but then the screen refreshes and I lose the signature. How do I stop the refresh?

                        in reply to: Using Alternative Field Labels #27235
                        Therman
                        Participant

                          Good deal. I’ll give this a shot.

                          in reply to: Using Alternative Field Labels #27175
                          Therman
                          Participant

                            Hey, thanks Michael. I’m aware of the first option. It’s what I normally do. However, i was looking for something that had the same functionality as InfoPath. In InfoPath, you can name your field, but on the form canvas you can write whatever you want.

                            If those are my best options, I guess I’ll have to make them work. Thanks again!

                            in reply to: vLookup – Update Child when Parent is Updated #24569
                            Therman
                            Participant

                              Ok, so let me see if I got this correct (I’m terrible at JavaScript. Still trying to learn).

                              First, what I need to do is change this function name from “callMeFromChangeRule” to something like “updateChildrenEvents”.
                              Then, I need to add it to my customJS section on the parent Edit form.
                              Then, on the parent Edit form, I need to create a rule that calls “updateChildrenEvents”. If that’s correct, I actually have a few fields that match the children. The parent needs to update any of those same children fields when saved. Are there any examples of how to do this?

                              in reply to: vLookup – Update Child when Parent is Updated #24416
                              Therman
                              Participant

                                I had this need as well. What I did was put this code on the Edit form of my Parent list in the customJs tab. Is that correct? My parent field is titled “canceled” (Boolean) and I need the child field “EventStatus” (single line) to update when I update when “canceled” is updated.

                                Here’s my code:

                                
                                
                                function callMeFromChangeRule(){
                                    var arrOfIDs = [];
                                    jQuery.each(spjs.vLookup.dataObj.vLookupTasks[spjs.dffs.data.thisItemID].items,function(id,vLookupListItem){
                                    	arrOfIDs.push(id);
                                    });
                                    spjs.utility.updateItem({
                                        &quot;listName&quot;:&quot;{611AE134-3BE2-4FE2-8FED-3D9FB0905E65}&quot;,
                                        &quot;id&quot;:arrOfIDs,
                                        &quot;data&quot;:{&quot;EventStatus&quot;:getFieldValue(&quot;Canceled&quot;)}
                                    });
                                }
                                • This reply was modified 5 years, 9 months ago by Therman.
                                • This reply was modified 5 years, 9 months ago by Therman.
                                in reply to: Where did the edit icon go? #24366
                                Therman
                                Participant

                                  Not sure how that slipped my mind…I knew that and completely missed it. Thanks again!

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