Rad

Forum Replies Created

Viewing 7 posts - 46 through 52 (of 52 total)
  • Author
    Posts
  • 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 8 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.

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

                using this :

                function setTabToReadOnly(tabIdx){
                console.log(“function: setTabToReadOnly: ” + tabIdx);
                var arrToSetReadonly = [];
                //jQuery.each(spjs.dffs.data.tabFieldsObj,function(fin,o){
                jQuery.each(spjs.dffs.data.tabConfigObj[tabIdx].fields,function(i,fin){

                arrToSetReadonly.push(fin);
                });

                spjs.dffs.doReadOnly(arrToSetReadonly);
                spjs.dffs.toggleSaveBtnByRule(false); /* hide save button */
                }

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

                  Hi, I am trying to use the below code to make all the fields in Tab0 (I’ve 2 tabs and one should be read only based on access level) read only and noticing couple of things:

                  1. it doesn’t seem to work for all the fields. Some fields still show as editable. What could be the issue?

                  2. The multiselect checkboxes all align in one column (using function multichoiceVertical -see below to align checkboxes horizontally) but calling setTabToReadOnly is removes the format

                  function setTabToReadOnly(tabIdx){
                  console.log(“function: setTabToReadOnly: ” + tabIdx);
                  var arrToSetReadonly = [];
                  jQuery.each(spjs.dffs.data.tabFieldsObj,function(fin,o){
                  // jQuery.each(spjs.dffs.data.tabConfigObj[tabIdx].fields,function(i,fin){

                  arrToSetReadonly.push(fin);
                  });

                  spjs.dffs.doReadOnly(arrToSetReadonly);
                  spjs.dffs.toggleSaveBtnByRule(false); /* hide save button */
                  }

                  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;
                  });
                  }
                  });
                  }

                  • This reply was modified 8 months, 3 weeks ago by Rad.
                Viewing 7 posts - 46 through 52 (of 52 total)