Rad

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 47 total)
  • Author
    Posts
  • 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 5 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;
                        });
                        }
                        });

                        }

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

                          thank you, I was able to install the latest version but the issue of some fields still showing in edit mode and the checkboxes losing their alignment still persists. I can confirm that there are no additional rule set for those fields.

                          • This reply was modified 5 months, 3 weeks ago by Rad.
                          in reply to: Easy way to make all fields readonly? #37755
                          Rad
                          Participant

                            Excuse my ignorance as I am new to DFFS and trying to catch up.
                            I am trying to upgrade to v4.4.5.51 and using a custom DFFS name located in a different path but the default DFFS file location appears within the content editor. How do I change the root path? Pls see attached screenshot.

                            This is the message that appears within the content editor:
                            DFFS file location: /sites/TLP_Intake/SPJS/DFFS. The dffs_folder_location variable is set to “root”.

                            Actual path of installer file:
                            /sites/TLP_Intake/DUA/SPJS/DFFS_v44551_20240428/installer/Installer_CEWP_code.html

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

                              I’ve Dynamic Forms for SharePoint v4.4.5.43 – March 27, 2022

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

                                tried it and same results. Fr some reason the same 6 fields are not being set as read only. in addition the check boxes get aligned to one column.

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

                                  tried using wrapChoiceField function as well but it doesn’t work with setTabToReadOnly fucntion.

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