Forum Replies Created
-
AuthorPosts
-
Thanks for this Alex. This looks to work on the New form, but I don’t think it’s saving the data as there’s noting in the field. Also, I can’t view the data in the edit or display forms.
Is it possible to do this?
Note: I change the field name to Q1. I also changed the JS to save this. Also, how would I go about adding multiple fields like this?
Thanks,
Phil
- This reply was modified 7 years, 1 month ago by Phil Meacham.
Attachments:
Just to add to this, I’ve managed to change it so that it changes the field header, but not the value. I used the following code, but I want it to highlight the field, not the header:
(function colorMyField(){
var val = getFieldValue(“Approved_x003f_”), color = “#FFFFFF”;
if(val == “Yes”) {color = “#00ff00 !important”;
}
$(spjs.dffs.fields[“Approved_x003f_”]).css(“background-color”,color);
})();$(spjs.dffs.fields[“Approved_x003f_”]).find(“input”).change(function(){
colorMyField();
});Alex, I’ve searched through the forum, and found this post for something I’m trying to achieve, but the filed I’m trying to do this on is a Yes/No field. I’ve tried comparing it as a boolean but I’m assuming it’s a text field in SP, probably not, probably boolean. But how can I achieve this? The code I’ve put into the custom JS so this:
(function colorMyField(){
String val = getFieldValue(“Approved_x003f_”), color = “#FFFFFF”;
if(String val = “Yes” {
color = “#00ff00”;
}
$(spjs.dffs.fields[“Approved_x003f_”]).css(“background-color”,color);
})();$(spjs.dffs.fields[“Approved_x003f_”]).find(“input”).change(function(){
colorMyField();
});Thanks Alex, I don’t suppose there’s any guides or helpful links you might have or know of that will show me how to do this?
Thanks for this Alexander, how do I put this in to the form though? Do I do it in the value part of the rules section?
Thanks for this Andreas, my worry with this is for a reporting point of view and linking with PowerBI.
With Lookup columns I can use the ID’s to link the lists and it works well, but with this solution, I’m going to have to be linking on the text fields which won’t work as good.
I guess I could have another filed that also pulls in the ID but doesn’t show if it’s the only value so it’s essentially hidden.
I’ll give it a try and let you know how I get on.
I found the issue! Well I found what was wrong with my installation.
If you look at the July download, the DFFS_frontend_CEWP.html file line 16 refers to /SPJS/DFFS/js/DFFS_frontend_min_old.js but the actual file in the folder is NOT _old!!
Remove the _old from here and it’s working now!
I’m getting this issue also. I just can’t get the overlay to load.
I have SP 2010 on prem. I’ve tried with ie11, firefox and chrome but always the same.
I load the NewForm to add an item, I get the Loading… Message then the This took forever! I click to close the message and the form doesn’t have any fields for me see, like it’s hidden everything and I can’t edit the form.
I’ve tried to look at the configuration list but there’s nothing in there.
In developer mode I get the error messages that have been reported earlier.
I’ve tried using the overlay code from Dec 2014 and also the code posted above but it’s still the same.
I’m expecting this to be a permission issue somewhere but I am the administrator of the site so I’m not sure how.
Is there any information or anything you want me to post to help find the issue? I’ve spent quite a bit of time on this but I just can’t seem to get it working.
Attachments:
Thanks for this Chris, I have an intranet site on the same SharePoint that I tried to do this with there along with the Edge tag as I wanted it to be a little responsive. However, it messed lots of things up. For example, if you try to use a people picker field, unless you get the name first time, you can’t select a name.
Also, the data picker field wouldn’t work as it was supposed to.
Do you experience any issues like this with the IE10 tag?
Thanks,
Phil
-
AuthorPosts