Forum Replies Created
-
AuthorPosts
-
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, 4 months ago by DCH.
Attachments:
Thanks that resolved the issue!
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, 9 months ago by DCH.
No problem! I am loading vLookup v2.2.79, DFFS v4.4.23 and SPJS-Utility v1.2.67.
Ha, so easy. Thanks again.
I found that if I wrap my function in a setTimeout for 10ms then it works fine.
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, 11 months ago by DCH.
I promise I tried that first! But somehow it worked this time……. 😉
Thanks!
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"}
Attachments:
So awesome, thank you!
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!
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!
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!
I also noticed with the new 1.4.8 version of autocomplete, the confirmation light never turns green, just keeps spinning.
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.276There 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.
-
AuthorPosts