Steve

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 45 total)
  • Author
    Posts
  • Steve
    Participant

      I got the newest version.
      Dynamic Forms for SharePoint v4.4.5.24 – May 5, 2021, and double dialogues still occurs.

      Also I would like to use it for newForm but I tried to save the form with some fields required were blank, I could not end the dialogue. The dialogue should appear only when the all required data fields are filled and the save button is hit.

      Thak you Alex,

      Steo

      Steve
      Participant

        Hello, it works, thank you, but the dialogue shows twice.
        I use the rule “The form is saved” calling the function you posted above.
        See the attachment.

        Thank you for a piece of advice.
        Steo

        Attachments:
        in reply to: Query returns bad date – casc. dropdown #33517
        Steve
        Participant

          I’ve attached a screenshot of cascading dropdown configuration.
          I know that the exclamation mark is there for a reason, but what should I do? How to clean the datasource?
          I have a list that looks like this (2nd attachment). What should I clean? Can you give me an answer or redirect me to some thread?
          Thank you, Steo

          UPDATE: I got it, I did not mention the extra white spaces. Thank you. I thought there must be a mistake that the exclamation mark warns me about extra white spaces that don’t exist. Now I found them :-))

          • This reply was modified 3 years, 7 months ago by Steve.
          in reply to: Query returns bad date – casc. dropdown #33493
          Steve
          Participant

            Hi, of course:
            1. Here are my fields of the list
            2. Rule which triggers the error – but only sometimes – it triggers the rule which should hide exclamation mark with setTimeout.
            3. Custom JS – custom code.

            When I use a file “casc.js” from February/07/2021 – version 4.4.5.16
            The error does not appear in the developer console.
            Thank you Alex,

            Steo

            in reply to: Query returns bad date – casc. dropdown #33451
            Steve
            Participant

              Thank you, Alex, the workaround with the calculated field worked perfectly. For Czechia we must use this formula:

              =HODNOTA.NA.TEXT([Created];"DD. MM. YYYY")

              //For people from this country

              Yes, one of the fields is being empty until the product is chosen. Then, “hodnocení do DFFS” is filed by the date. If this field is filled, the other rule took this value and set another field with this date (I earlier used custom JS). Now with the right formula, I can do better.

              Thank you so much for a quick reaction.
              Steo

              • This reply was modified 3 years, 7 months ago by Steve.
              in reply to: Query returns bad date – casc. dropdown #33448
              Steve
              Participant

                I’ve also updated to the latest version and it’s still not working, but another error occured in Chrome console:

                
                
                Uncaught TypeError: d.split is not a function
                    at String.eval (eval at <anonymous> (SPJS-casc.js:10), <anonymous>:1:19840)
                    at Function.each (jQuery.js?v=1620900533451:2)
                    at Object.eval (eval at <anonymous> (SPJS-casc.js:10), <anonymous>:1:19714)
                    at Function.each (jQuery.js?v=1620900533451:2)
                    at Object.setFields (eval at <anonymous> (SPJS-casc.js:10), <anonymous>:1:19643)
                    at Object.fill (eval at <anonymous> (SPJS-casc.js:10), <anonymous>:1:20638)
                    at eval (eval at <anonymous> (SPJS-casc.js:10), <anonymous>:1:27434)
                in reply to: setDate based on another Date and time field #32510
                Steve
                Participant

                  It looks like I got it working:

                  
                  
                  function endOfQuarantine() {
                      let d = spjs.utility.getDateFieldAsDateObject('positiveSince');
                      let dd = new Date(d);
                      dd.setDate(dd.getDate()+14);
                      let day = dd.getDate();
                      let month = dd.getMonth()+1;
                      let year = dd.getFullYear();
                  
                  let finalDate = (day +". "+ month + ". "+year);
                  setFieldValue('positiveTo',finalDate);
                  }
                  in reply to: DFFS does not load in EditForm #31103
                  Steve
                  Participant

                    Thank you Alex, I figured it out.
                    Field DFFS by SPJSBlog.com was in the content type set as “Hidden”.
                    Now, it works perfectly.

                    in reply to: Lock form after 09:00 #28795
                    Steve
                    Participant

                      Thank you Alex again, we’ve updated DFFS version to the latest. DateObject has started to work.
                      Steo

                      in reply to: Custom JS work in Google Chrome but not in IE11 #28793
                      Steve
                      Participant

                        You’re a magician Alex, thank you, it works perfectly. I hope it will help other people someday.
                        Thanks.
                        Steo

                        in reply to: Number field validation to use dot and not comma #28716
                        Steve
                        Participant

                          Thank you, Alex, it helped me a lot.
                          In Czech, we have comma separator instead of a decimal dot.
                          And I changed the event from “keyup” to “change” and it works perfectly.
                          Steo

                          in reply to: Lock form after 09:00 #28470
                          Steve
                          Participant

                            Ok, I hope it won’t be complicated and not delete all configuration.
                            I’ll let you know when I’m done.
                            It will probably take some time.
                            Thank you Alex,
                            Steo.

                            in reply to: Lock form after 09:00 #28464
                            Steve
                            Participant

                              This one:

                              • This reply was modified 4 years, 10 months ago by Steve.
                              in reply to: Lock form after 09:00 #28459
                              Steve
                              Participant

                                Sorry, the output does not show anything. I should have added the attachment.

                                in reply to: Lock form after 09:00 #28455
                                Steve
                                Participant

                                  Thank you, Alex, so much.
                                  It is not working:

                                  
                                  
                                  var due = spjs.utility.getDateFieldAsDateObject("objNaDate");
                                  var todayAt0900 = new Date();
                                  todayAt0900.setHours(9, 0, 0);
                                  if (due < todayAt0900) {
                                      jQuery("#part1").hide();
                                      spjs.dffs.alert({
                                          "title": "No access",
                                          "msg": "This item is locked because the due date has passed.",
                                          "ok": function () {
                                              location.href = location.href.split("EditForm.aspx").join("DispForm.aspx");
                                          }
                                      });
                                  }

                                  Field Internal Name is OK. Developer console in Google Chrome does not show any errors.
                                  Thank you.
                                  Steo

                                Viewing 15 posts - 16 through 30 (of 45 total)