Rad

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 52 total)
  • Author
    Posts
  • in reply to: Sending email #38214
    Rad
    Participant

      this is the error I get: after clicking OK button.

      VM17502:1 Uncaught TypeError: Cannot read properties of undefined (reading ‘hidden’)
      at String.eval (eval at <anonymous> (DFFS_frontend_min.js:10:1), <anonymous>:1:99824)
      at Function.each (jQuery.js?v=1730264777187:2:2881)
      at Object.emailCurrentTab (eval at <anonymous> (DFFS_frontend_min.js:10:1), <anonymous>:1:99613)
      at Object.init_emailTab (eval at <anonymous> (DFFS_frontend_min.js:10:1), <anonymous>:1:95231)
      at Object.ok (eval at <anonymous> (DFFS_frontend_min.js:10:1), <anonymous>:1:94745)
      at Object.ok (eval at <anonymous> (DFFS_frontend_min.js:10:1), <anonymous>:1:295246)
      at HTMLInputElement.onclick (DispForm.aspx?List=0f3d624b%2D292b%2D48af%2Da894%2Dbfdb71577fc3&ID=1&Source=http%3A%2F%2Fsharepoint2%2Ebankofamerica%2Ecom%2Fsites%2FDUA%5FOther%2FLists%2FAffinityRequests%2FAllItems%2Easpx&ContentTypeId=0x0100040EC9A443EDCD4EBD9D702A1A50BA54:1:12)

      in reply to: Sending email #38212
      Rad
      Participant

        I was hoping to find a solution here but my issue is unique. The email active tab works only on 2nd tab and not the first one. The email pop shows nothing happens when clicking the ok button. It works perfectly fine for the 2nd tab.

        in reply to: Adding table borders #38209
        Rad
        Participant

          Hi, this doesn’t seem to work for me still. I copy/pasted the code for #sbs_OuterTable_100 as is and update the index to 100.
          Please see the attached screenshots. Am i missing something?

          if were to draw a border around an internal field txtfrequency, is this right code?

          #sbs_FieldTable_txtfrequency{
          border-left:2px red dashed;
          }

          in reply to: Adding table borders #38103
          Rad
          Participant

            Hi Alex, I am trying to create borders around a group of fields so they can be separated in sections. Tried using below code but doesn’t seem to work for me. What does FieldTable stand for in #sbs_FieldTable_YourFieldNameHere?

            Also, did you mean adding the code to “Custom styling of read-only fields in addition to the style selected above (CSS Syntax)” in Misc tab?

            #sbs_FieldTable_YourFieldNameHere{
            border-left:2px red dashed;
            }

            in reply to: Get user input prior to sending email #37788
            Rad
            Participant

              got it working. thanks

              in reply to: Get user input prior to sending email #37787
              Rad
              Participant

                Thank you for the resolving the email issues.

                Now, I am running into a different issue –
                1. I want to save the form
                2. then send an email.

                Added this code for save – $(“input[id$=diidIOSaveItem]:last”).click();

                But the input box appears and closes as soon as I added this line.

                I tried changing the order to first send the email and then save but still the same behavior.

                in reply to: Get user input prior to sending email #37786
                Rad
                Participant

                  I am good. It works. thanks

                  in reply to: Get user input prior to sending email #37785
                  Rad
                  Participant

                    i was sing spjs.dffs.processEmailTemplate and it works fine but just doesn’t seem to work with alert

                    in reply to: Get user input prior to sending email #37783
                    Rad
                    Participant

                      getting this error now.

                      POST
                      Email 400 (Bad Request)

                      • This reply was modified 8 months, 2 weeks ago by Rad.
                      in reply to: Get user input prior to sending email #37780
                      Rad
                      Participant

                        Also, is it ok to separate out the email call from the alert? The reason I am asking is, because email needs to be fired each time with different info based on various scenarios.

                        call alert code from function1
                        spjs.dffs.alert({
                        “title”: “Enter a return reason”,
                        //”msg”: <textarea> style=’width:100%;box-sizing:border-box;height;75px;’ id=’varFromAlertInput_input’></textarea>”,
                        “msg”: “<input id=’varFromAlertInput_input’ type=’text’>”,
                        “ok”: function(){
                        var fromAlertInput = jQuery(“#varFromAlertInput_input”).val();
                        htmlBody.push(fromAlertInput);
                        },
                        “cancel”: function(){
                        // Close dialog
                        }
                        });

                        then call the REST_EMail from function2?

                        spjs.dffs.REST_Email({
                        “to”: “” + jsEmailTo,
                        “cc”: [],
                        “bcc”: [],
                        “subject”:””+ sbj,
                        “body”:”” + jsEmailBody + fromAlertInput
                        });

                        in reply to: Get user input prior to sending email #37779
                        Rad
                        Participant

                          getting an error for this line

                          msg”: <textarea style=’width:100%;box-sizing:border-box;height;75px;’ id=’varFromAlertInput_input’></textarea>

                          VM12250:1 Uncaught SyntaxError: Invalid or unexpected token

                          in reply to: Easy way to make all fields readonly? #37770
                          Rad
                          Participant

                            Please ignore this question, found a solution.

                            in reply to: Easy way to make all fields readonly? #37769
                            Rad
                            Participant

                              Another q around multiselect checkboxes – Wondering if there’s already a built in functionality wherein if a checkbox is selected then rest of the boxes can be disabled?

                              in reply to: Easy way to make all fields readonly? #37762
                              Rad
                              Participant

                                perfect!

                                in reply to: Easy way to make all fields readonly? #37760
                                Rad
                                Participant

                                  I was able to achieve the desired functionality using rules. Thank you for the guidance. Only think left now is the multi choice checkbox alignment. In the read only mode, the checkboxes all align vertically. I’ve around 30 so need them to align some horizontally. I am using the below function and it works great in edit form but not when I set the field to readonly.

                                  function multichoiceVertical(arr,breakAfter){
                                  var toFind, index, counter, table;
                                  toFind = “td.ms-formbody”;
                                  if($(“td.ms-formbodysurvey”).length>0){
                                  toFind = “td.ms-formbodysurvey”;
                                  }
                                  $.each(arr,function(i,fin){
                                  if(fields[fin]!==undefined){
                                  index = 0;
                                  counter = 0;
                                  table = $(fields[fin]).find(toFind+’ table:first’);
                                  $(table).prepend(“<tr id=’vertical_”+fin+”_”+index+”‘></tr>”);
                                  $(table).find(‘tr:first’).nextAll().each(function(){
                                  if(counter%breakAfter===0){
                                  $(“#vertical_”+fin+”_”+index).after(“<tr id=’vertical_”+fin+”_”+(index+1)+”‘></tr>”);
                                  index += 1;
                                  }
                                  $(this).find(‘td:first’).appendTo($(“#vertical_”+fin+”_”+index));
                                  $(this).remove();
                                  counter += 1;
                                  });
                                  }
                                  });

                                  }

                                Viewing 15 posts - 31 through 45 (of 52 total)