Rad

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 52 total)
  • Author
    Posts
  • in reply to: Delay in Save #38437
    Rad
    Participant

      found the issue – I had some logic under preSave function cause the value to revert back.

      in reply to: Delay in Save #38436
      Rad
      Participant

        yes it’s a single line text.

        very strange, I’ve tried rearranging code and nothing seems to work. The save seems to be a random behavior.

        Any thoughts?

        in reply to: Delay in Save #38429
        Rad
        Participant

          I looked into the versioning and it doesn’t show any value change for this field. Hope adding a timer would help. It seems to work so far. this is the updated code.

          case “btnSubmit”:
          setFieldValue(“txtRequestStatus”,”Submitted”);
          sendEmail(getFieldValue(“txtRequestStatus”));

          // $(“input[id$=diidIOSaveItem]:last”).click();

          setTimeout(function() {

          // alert(“here”);
          $(“input[id$=diidIOSaveItem]:last”).click();

          }, 2000); //2 second

          in reply to: Delay in Save #38428
          Rad
          Participant

            so, the order should be like below? First send email then save? I that the reason?

            setFieldValue(“txtRequestStatus”,”Submitted”);
            sendEmail(getFieldValue(“txtRequestStatus”));
            $(“input[id$=diidIOSaveItem]:last”).click();

            in reply to: Delay in Save #38427
            Rad
            Participant

              it seemed like there was a delay in setFieldValue(“txtRequestStatus”,”Submitted”);, so added timer to excute Save after 2 sec. Have you seen this issue with delay in setting a variable?

              case “btnSubmit”:
              setFieldValue(“txtRequestStatus”,”Submitted”);

              //$(“input[id$=diidIOSaveItem]:last”).click();

              setTimeout(function() {

              // alert(“here”);
              $(“input[id$=diidIOSaveItem]:last”).click();

              if(getFieldValue(“txtRequestStatus”) == “Submitted”){
              sendEmail(getFieldValue(“txtRequestStatus”));
              };
              }, 2000);

              break;

              in reply to: Contents when using email current tab #38310
              Rad
              Participant

                superb! works great with the changes. thanks again for your patience and prompt responses!

                in reply to: Contents when using email current tab #38306
                Rad
                Participant

                  1. I do have the showApprovalStatus already added to my custom javascript.
                  2. In addition, I believe statusBannerIcon is needed since you’re referencing it in showApprovalStatus?
                  3. I see where approvalWfStatus is being used, just need to know where its defined.

                  in reply to: Contents when using email current tab #38301
                  Rad
                  Participant

                    Could it be a version issue again? This is what I’ve:

                    Version information
                    DFFS Loader: v2
                    DFFS frontend: 4.4.5.51 – April 28, 2024
                    DFFS frontend CSS: 4.66 /
                    Autocomplete: 1.6.56 – April 04, 2024
                    Cascading dropdowns: 3.7.48 – September 22, 2021
                    jQuery: 3.6.3
                    Lookup: 1.1.20 – March 10, 2020
                    Resource management: 2.4.5 – August 29, 2019
                    SPJS-Utility: 1.356 – November 20, 2021
                    vLookup: 2.2.166 – April 04, 2024

                    in reply to: Contents when using email current tab #38300
                    Rad
                    Participant

                      Q- noticed you’re using a class called approvalWfStatus in your demo but I don’t see where you’re defining it.

                      in reply to: Contents when using email current tab #38291
                      Rad
                      Participant

                        tried it but Email format is still off.

                        in reply to: Contents when using email current tab #38289
                        Rad
                        Participant

                          .ms-formbody{
                          width:600px;
                          }

                          .ms-formlabel .ms-standardheader{
                          font-weight:bold;+
                          }

                          .sbs_FieldLabel{
                          height:auto;
                          }
                          .sbs_FieldLabel .ms-formlabel{
                          font-size: .9em;
                          font-weight:500;
                          padding:6px 6px 0 6px;

                          }

                          input:focus,div:focus,select:focus{
                          outline: none;
                          border-radius: 0px;
                          box-shadow: 0 0 0 3px rgba(0, 123, 255, .5);

                          }

                          /* formatting for tab1 headers*/
                          .tabH1{
                          background-color: Steelblue !important;
                          color:white !important;
                          font-size:12px !important;
                          font-weight:bold;
                          font-style:ButtonFace;
                          border-top-left-radius: 8px;
                          border-top-right-radius: 8px;
                          }

                          /* formatting for tab2 headers*/
                          .tabH2{
                          background-color: Teal !important;
                          color:white !important;
                          font-size:12px !important;
                          font-weight:bold;
                          font-style:ButtonFace;
                          border-top-left-radius: 8px;
                          border-top-right-radius: 8px;
                          }

                          /* button formatting */
                          .ms-ButtonHeightWidth {
                          border-radius: 12px;
                          background-color: darkgreen !important;
                          color: white !important;
                          font-weight:bold !important;

                          }

                          .ms-ButtonHeightWidth:hover{
                          box-shadow: 0 16px 16px 0 rgba(0,0,0,0.5), 0 6px 20px 0 rgba(0,0,0,0.19);
                          /* box-shadow: 0px 0px 8px 4px gray; */
                          }

                          .col-form-label {width: 250px;}/* default tables used with json data */
                          .tableDefault{
                          table-layout: fixed;
                          width:100%;
                          max-width: 900px;
                          padding-bottom: 5px;
                          padding-top:5px;
                          border: 1px solid #AAAAAA;
                          border-top-left-radius: 5px;
                          border-top-right-radius: 5px;
                          }
                          .tableDefault th {
                          background-color:#G0G5G5;
                          color:black;
                          font-size: 10px;
                          font-weight: bold;
                          vertical-align: bottom;
                          }
                          .tableDefault td, th {
                          padding: 3px 2px;
                          }
                          .tableSmallWidth{
                          width:500px;
                          }

                          .tableDefault tbody td {
                          font-size: 10px;
                          word-wrap: break-word;
                          }
                          .tableDefault tr:nth-child(even) {
                          background: #D0E4F5;
                          }

                          .tableDefault input{
                          border-radius: 12px;
                          background-color: #F56265;
                          }

                          .float-left-child {
                          float: left;
                          }

                          .sbs_OuterTable {

                          background-color: #f1f3f3;
                          border-radius: 3px;
                          padding: 1;
                          /*
                          outline: 1px solid;
                          outline-color: lightgray;
                          outline-offset: 2px;
                          */

                          }

                          .spjs-form-choice-wrap .spjs_chk_checkmark,
                          .spjs_radio_wrap .spjs_radio_checkmark {
                          background-color: white !important;
                          }

                          .spjs_chk_wrap input:checked~.spjs_chk_checkmark,
                          .spjs_radio_wrap input:checked~.spjs_radio_checkmark {
                          background-color: black !important;
                          }

                          /* the below code displays the status flow on top of the form */

                          .statusBannerIcon{
                          display:inline-block !important;
                          font-size:25px;
                          margin:5px;
                          color:#cccccc;
                          }
                          .approvalWfLabel{
                          font-size:14px;
                          font-weight:bold;
                          border-bottom:1px silver solid;
                          padding:0 0 10px 5px;
                          }

                          .customHeading{
                          background-color: #1B619B;
                          color: #EFF2F6;
                          font-size:16px;
                          padding:5px 10px;
                          }

                          in reply to: Contents when using email current tab #38288
                          Rad
                          Participant

                            that’s how I have it. here’s the file I am using.

                            in reply to: Contents when using email current tab #38283
                            Rad
                            Participant

                              this looks perfect, my formatting seems way off in the email. I’ll try to dig into it, thanks

                              in reply to: Contents when using email current tab #38277
                              Rad
                              Participant

                                I got it from -> https://spjsblog.com/2017/08/19/dffs-example-training-application-list-with-approval/

                                but here’s the CSS:

                                .statusBannerIcon{
                                display:inline-block;
                                font-size:35px;
                                margin:5px;
                                color:#cccccc;
                                }
                                .approvalWfLabel{
                                font-size:18px;
                                font-weight:bold;
                                border-bottom:1px silver solid;
                                padding:0 0 10px 5px;
                                }
                                .customHeading{
                                background-color: #1B619B;
                                color: #EFF2F6;
                                font-size:16px;
                                padding:5px 10px;
                                }

                                Below Function being called from “Click function name” within the tab:

                                //create Status numbers on top of the form
                                function showApprovalStatus(){
                                var b = [], label, labelColor, status, spjsStatusArr = [
                                {“label”:”New”,”icon”:”①”,”color”:”#0000FF”},
                                {“label”:”Draft”,”icon”:”②”,”color”:”#1E90FF”},
                                {“label”:”Cancelled”,”icon”:”③”,”color”:”#FFD700″},
                                {“label”:”Submitted”,”icon”:”④”,”color”:”#3CB371″},
                                {“label”:”Returned”,”icon”:”⑤”,”color”:”#e81123″},
                                {“label”:”Review”,”icon”:”⑥”,”color”:”#0000FF”},
                                {“label”:”Approved”,”icon”:”⑦”,”color”:”#107c10″}
                                ];
                                status = getFieldValue(“txtRequestStatus”);
                                jQuery.each(spjsStatusArr,function(i,c){
                                b.push(“<div title='”+c.label+”‘ class=’statusBannerIcon'”);
                                if(status === c.label){
                                b.push(” style=’color:”+c.color+”‘”);
                                label = c.label;
                                currStatusIndex = i;
                                labelColor = c.color;
                                }
                                b.push(“‘>”+c.icon+”</div>”);
                                });
                                jQuery(“.approvalWfStatus”).html(b.join(“”));
                                jQuery(“.approvalWfLabel”).html(“<span style=’color:”+labelColor+”‘>Current status: “+label+”</span>”);
                                }
                                setTimeout(function(){
                                showApprovalStatus();
                                },500);

                                Attachments:
                                in reply to: Changing color of checkbox itself #38271
                                Rad
                                Participant

                                  !important did the trick. thank you!

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