DCH

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 63 total)
  • Author
    Posts
  • in reply to: Placeholder option for tooltips #21912
    DCH
    Participant

      Sure, here is the spec:

      https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Labels_and_placeholders

      And an example image attached. Check out the “Type of OS” field. It shows a hover icon from dffs, and the html5 placeholder I’m injecting with jQuery. When the user clicks into the field the placeholder text disappears and is replaced with their text.

      I would like to be able to choose whether the help text is in an icon, or a placeholder for each field. Only input and textarea fields support the placeholder attribute.

      • This reply was modified 6 years, 3 months ago by DCH.
      Attachments:
      in reply to: Autocomplete Fails After Upgrade #19438
      DCH
      Participant

        Thanks that resolved the issue!

        in reply to: Permission Trimmed Choice Field #16057
        DCH
        Participant

          Alexander, this is awesome and simple. It worked for me with one slight change to the eq method. I also negated the if so the values were hidden unless you belonged to a specific group.

          function trimOptionsByGroupMembership(){
          	var select = $("#dffs_FeedbackType"), hide = function(arr){
          		$.each(arr, function(i, v) {
          			$(select).find("option").eq(v).hide();
          		});
          	}
          	if(!spjs.dffs.verifyGroupMembership("22")){
          		hide([3]);
          		return;
          	}
          }
          
          trimOptionsByGroupMembership();

          Also it doesn’t appear to work in IE. Still testing.

          Thanks!

          • This reply was modified 7 years, 8 months ago by DCH.
          in reply to: vLookup dataObj total value #15277
          DCH
          Participant

            No problem! I am loading vLookup v2.2.79, DFFS v4.4.23 and SPJS-Utility v1.2.67.

            in reply to: Read and Write JSON from a Multiline Text Column #15138
            DCH
            Participant

              Ha, so easy. Thanks again.

              in reply to: Group & Count #15119
              DCH
              Participant

                I found that if I wrap my function in a setTimeout for 10ms then it works fine.

                in reply to: Group & Count #15082
                DCH
                Participant

                  I tried to write some code to accomplish this using the vLookupIsLoadedCallback function but I can’t get it to work. I am able to use alerts to validate that the callback and my function are getting called, but the object I build is empty. It works perfectly in the javascript console but not when using the DFFS Custom JS tab. Could you take a look and see what I am doing wrong?

                  Also, I couldn’t find a way to get the subtotals from each group using the vlookup data object. It seemed to only contain the overall total.

                  function vLookupIsLoadedCallback(fin){
                      if(fin === "vLookupTasks"){
                          alert("in callback");
                          appendSubtotals();
                      }
                  }
                  
                  function appendSubtotals() {
                          // create nodeset of TRs that contain complete progressbar divs
                          var apc = $(".vLookup_total_vLookupTasks .vLookupProgressBarOuter").parent();
                          alert("in function");
                          // iterate through the nodeset
                          $.each(apc, function() { 
                              // grab the text
                              var pcnt = $(this).text();
                              // find the parent element that lets us find the header
                              var par = $(this).parents(".vLookupGroup").siblings(".vLookupGroupHeader");  
                              // append the percentcomplete text to the header
                              $(par).append(" -" + pcnt);
                          });
                  }
                  • This reply was modified 7 years, 10 months ago by DCH.
                  in reply to: Decimals in Column Totals #15070
                  DCH
                  Participant

                    I promise I tried that first! But somehow it worked this time……. 😉

                    Thanks!

                    in reply to: Decimals in Column Totals #14990
                    DCH
                    Participant

                      I couldn’t find one that had non-zero values right near the totals row. But the 0%s are formatted according with these Special Configurations, but the value in the total row shows 14.28571428571428

                      {"percentage":true,"suffix":"%","progressBar":true,"totalsType":"average"}
                      in reply to: Add IDs to vLookup Elements #14097
                      DCH
                      Participant

                        So awesome, thank you!

                        in reply to: vLookup & Preview Item on Hover #14095
                        DCH
                        Participant

                          Alexander,

                          Thanks so much… you provide such excellent support! This works perfectly, and helps me understand the mechanics of how to do it. I need to make some adjustments for my site. If I come up with anything useful I will post it here.

                          Thanks!

                          in reply to: Add IDs to vLookup Elements #14004
                          DCH
                          Participant

                            Also related to the question above, I would like to be able to apply styles to the column headings (like we can for the grouping headers), and to replace the view, edit and refresh icon images (like I can for the DFFS tooltip). Is this possible with just css classes?

                            Thanks!

                            in reply to: Add IDs to vLookup Elements #14002
                            DCH
                            Participant

                              Alexander,

                              I know this is old, but how do I get the styles to apply to vlookup? It looks like the vLookup load is asynchronous, so my styles are not applied to the results. I’ve tried using the DFFS custom JS, the DFFS custom CSS, and loading the styles on the page in a webpart.

                              Thanks!

                              in reply to: Trigger Rule with Autocomplete Field #13705
                              DCH
                              Participant

                                I also noticed with the new 1.4.8 version of autocomplete, the confirmation light never turns green, just keeps spinning.

                                in reply to: Trigger Rule with Autocomplete Field #13703
                                DCH
                                Participant

                                  Ok, I updated everything to the latest. Here are my versions:

                                  DFFS frontend: 4.4.1
                                  DFFS frontend CSS: 4.19/4.14
                                  Autocomplete 1.4.8
                                  Cascading dropdowns 3.528
                                  jQuery: 1.11.3
                                  Lookup: not loaded
                                  Resource management: not loaded
                                  SPJS-Utility: 1.267
                                  vLookup: frontend v2.276

                                  There doesn’t seem to be a change in the field behavior. What I am trying to do is make one field conditionally required depending on two specific values in the Autocomplete field.

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