Forum Replies Created
-
AuthorPosts
-
June 15, 2022 at 18:02 in reply to: Remove black outline on active multi line boxes on edit form #35876
Worked like a charm sir! I tried to add border-color as well as
border-color: #FF00FF but it is still black. can we adjust that too?
Thanks again. The currUserInfo wasnt working but I did use spjs.utility.userprofile().preferredname
You have been awesome but on last question. If I was using {currentUser} and timestamp in the rule, how does that translate into the JS?
That seems to work but still having an issue. I have another rule that appends the NewComment field to historical comments. It is set to trigger on form save. I think that is triggering first, so in the historical comments I see /Intro but I do now see the updated New Comment.
I just need the PreSave action to fire off before the rule save trigger. Or a better way to do this
Just adding some context. We use to use a field that would append on its own in SharePoint but it wouldn’t export and ended up doing this other method. NewComment is only there to provide a space to put info that then gets appended to historical comments.
function dffs_PreSaveAction() {
var html = getFieldValue(“NewComment”);
var sc = jQuery(html).text();
if(sc === “/Intro”){
setFieldValue(“NewComment”,”<p>Your request is now in progress. Please keep an eye on your e-mail for additional communication from BSE Reporting & Insights. If we have any additional questions about your request we will contact you through this form as well. You can also add comments to this request if you have any questions or additional information to provide and we will automatically be notified.</p>”);
}
return true;
}
this is the error:
Uncaught Error: Syntax error, unrecognized expression: /Intro<br>
at Function.fa.error (jQuery.js?v=1618860436703:2:12733)
at fa.tokenize (jQuery.js?v=1618860436703:2:18786)
at fa.select (jQuery.js?v=1618860436703:2:21594)
at Function.fa [as find] (jQuery.js?v=1618860436703:2:7320)
at n.fn.init.find (jQuery.js?v=1618860436703:2:24109)
at new n.fn.init (jQuery.js?v=1618860436703:2:24676)
at n (jQuery.js?v=1618860436703:2:406)
at dffs_PreSaveAction (eval at <anonymous> (jQuery.js?v=1618860436703:2:2651), <anonymous>:5:11)
at PreSaveItem (eval at <anonymous> (DFFS_frontend_min.js:9:1), <anonymous>:1:271281)
at HTMLInputElement.onclick (EditForm.aspx?ID=3691&Source=http%3A%2F%2Fsharepoint2.bankofamerica.com%2Fsites%2FCCSSMandR%2FMIS%2FLists%2FCCSS%20MIS%20Request%20Form%2FPersonalViews.aspx%3FPageView%3DPersonal%26ShowWebPart%3D{D510D88B-5708-477A-B27F-2EFEC05DD796}:1654:710)
fa.error @ jQuery.js?v=1618860436703:2
fa.tokenize @ jQuery.js?v=1618860436703:2
fa.select @ jQuery.js?v=1618860436703:2
fa @ jQuery.js?v=1618860436703:2
find @ jQuery.js?v=1618860436703:2
n.fn.init @ jQuery.js?v=1618860436703:2
n @ jQuery.js?v=1618860436703:2
dffs_PreSaveAction @ VM1646:5
PreSaveItem @ VM1617:1
onclick @ EditForm.aspx?ID=3691&Source=http%3A%2F%2Fsharepoint2.bankofamerica.com%2Fsites%2FCCSSMandR%2FMIS%2FLists%2FCCSS%20MIS%20Request%20Form%2FPersonalViews.aspx%3FPageView%3DPersonal%26ShowWebPart%3D{D510D88B-5708-477A-B27F-2EFEC05DD796}:1654
Does it make a difference if it is an enhanced rich text?
First test didnt work quit right
It is a rich text field and I want it if the field is only /intro
OMG…so close and i was done in by a plus sign.
Thank You so much
I am getting the error the objext doesnt support padStart
Sorry for the long wait for a reply. I got it working. Silly mistake on my part. Thank you as always!
I added a new folder under SPJS for the new version, I am now using the new installer. I uninstalled DFFS on all 3 forms for both lists and reinstalled from loader 2.
I didnt have to update any settings and all the options look correct but still no parent/child showing up in the form.
Looks completly normal and still works so that is a plus
April 19, 2021 at 14:04 in reply to: Auto Fill Fields if the user selects a name that already exists #33262Worked like a charm. Sorry for completley glossing over that field.
April 16, 2021 at 15:56 in reply to: Auto Fill Fields if the user selects a name that already exists #33257spjs.ac.textField({ "applyTo": "Title", "helpText": "", "loadText": "", "listGuid": "{c7d70902-b17b-4cd1-bd33-6fd55219de3e}", "listBaseUrl": "/sites/CCSSMandR/MIS", "showField": "Title", "searchFields": [], "filterCAML": "", "useREST": false, "preloadData":false, "filterREST": "", "optionDetailFields": [], "optionDetailPrefix": [], "enforceUniqueValues": false, "rowLimit": 15, "listOptionsOnFocus": false, "minLengthBeforeSearch": 4, "reValidateOnLoad": false, "allowAddNew": true, "addToFolder": null, "isLookupInSelf": true, "addNewAdditionalFields": [], "multiselect": false, "multiselectSeparator": "; ", "orderBy": [], "clearSetFieldsOnInvalidSelection": false, "setFields": [], "debug": false });
All fields are single line text.
April 13, 2021 at 12:56 in reply to: Auto Fill Fields if the user selects a name that already exists #33193Sorry for the double post but I have some Custom JS so the user can start typing the VQName and it will return a list matching what they type.
-
AuthorPosts