Forum Replies Created
-
AuthorPosts
-
Bryan WaldropParticipant
Perfect and thank you! Putting money in the piggy bank!
Bryan WaldropParticipantI am familiar the following custom js for working with a single column but I seem to be missing some syntax for the group id method above for group ID:
$(“#dffs_FieldInternalName”).hide();
$(“#dffs_FieldInternalName”).show();
spjs.dffs.flag_Mandatory([“FieldInternalName”]);
spjs.dffs.clear_Mandatory([“FieldInternalName”]);
spjs.dffs.doReadOnly([“FieldInternalName”]);Bryan WaldropParticipantWhat would showing fin look like?
Bryan WaldropParticipantThank you!
I also found this solution to clear visible selections:
$("#Selection2_casc").empty();
Where my field name is Selection2
- This reply was modified 2 years, 6 months ago by Bryan Waldrop.
Bryan WaldropParticipantThank you so much as always! The on blur automated solution is much more elegant and very appreciated.
Bryan WaldropParticipantThank you very much!
Bryan WaldropParticipantMuch appreciated! thank you sir!
Bryan WaldropParticipantcould the multichoice be modified to use the values of other columns as choices?
I gave this a whirl but no go
function popUpMultichoiceSelect(fin, arrOfOptions) { var b = []; var cx=getFieldValue('phone1'); var dx=getFieldValue('phone2'); b.push("<div id='customMultichoiceSelector'>"); jQuery.each(arrOfOptions, function (i, v) { b.push("<input id='customMultichoice_" + i + "' type='checkbox' value='" + v + "'><label for='customMultichoice_" + i + "'>" + v + "</label>"); }); b.push("</div>"); spjs.dffs.alert({ "title": "Multichoice Example", "msg": b.join(""), "ok": function () { var arr = []; jQuery("#customMultichoiceSelector").find("input:checkbox:checked").each(function (i, elm) { arr.push(jQuery(elm).val()); }); setFieldValue(fin, arr); }, "cancel": function () { // Close dialog } }); } popUpMultichoiceSelect("phselect", [cx,dx]);
- This reply was modified 3 years, 4 months ago by Bryan Waldrop.
Bryan WaldropParticipantThank you sir! This works brilliantly and is something I will be able to reuse in many applications. Piggy Bank utilized!
Bryan WaldropParticipantThank you! That works perfectly if today is a Monday or Tuesday. Even Wednesday skips Sat and Sun to generate Monday as the new_date. However, if today is a Thursday or Friday then Monday is also selected as new_date instead of Tue/Wed?
Bryan WaldropParticipantHi Alexander!
What would “add 3 business days to todays date” look like?Thanks!
Bryan WaldropParticipant<attached>
Training Type is the vlookup column. I would like the value “cross training” to align with the Name of Trainer and Assigned Trainer columns.
Attachments:
Bryan WaldropParticipantSorry 0 Found my answer here: https://spjsblog.com/forums/topic/create-field-with-people-picker-data/
Bryan WaldropParticipantThank you for this! The results of my testing are that it works wonderfully in my SP2013 environment with a small exception. I have a coded “copy to clipboard” button/function where the alert for it will not close with enter after running.
Over in the SP 2010 environment, your snippet fires my “copy to clipboard” function every time enter is used to close any spjs.dffs.dlgbox. In SP2013 I can workaround by changing my “copy to clipboard” function back to a browser’alert’. But that did not work in SP 2010.//copytoclipboard function copyNotesToClip() { var txtNotes = getFieldValue('Call_x0020_Notes'); spjs.dffs.dlgBox ("Notes successfully copied to clipboard. Paste to system of record before resetting this form."); if( window.clipboardData && window.clipboardData.setData ) { window.clipboardData.setData("Text", txtNotes); } } $(spjs.dffs.fields["Call_x0020_Notes"]).find('.ms-formbody').append("<button class='customBtnA' onclick='copyNotesToClip();return false'>Copy Notes to Clipboard</button>");
Bryan WaldropParticipantThank you sir! Apparently the ability to use enter is a big deal to these users as I heard from another group about it today. I have several “scripts” for them to read before entering information that are alert box driven. I thought I would ask if there was an easy fix before changing them all back to alert.
-
AuthorPosts