Phil Grant

Forum Replies Created

Viewing 15 posts - 61 through 75 (of 134 total)
  • Author
    Posts
  • in reply to: Conditional formatting in the Misc HTML header #28234
    Phil Grant
    Participant

    Do I need to change the

    jQuery("#dffs_Status select").on("change",function(){

    Do I need to change the action form “change” to something like “load” ? as I want the form field to change colour when opened.

    in reply to: Replace ; with line feed #23729
    Phil Grant
    Participant

    LoL, that’s the only thing I didn’t try because you usually write FeildInternalName in the code when you want us to use it, this time I though YourFieldName specifically meant not to use the FIN.

    It works now thanks.

    in reply to: Replace ; with line feed #23715
    Phil Grant
    Participant

    Alexander,
    I tried the JS but it doesn’t work, I’m guessing that it’s because of the spaces in the field name? I tried various ways of writing it including escape characters in front of the spaces, underscores instead of spaces but nothing worked.

    Hopefully this is easy when you know the language, this is what I have: –

    
    
    var raw = getFieldValue("Projects also affected");
    jQuery("#dffs_Projects also affected td.ms-formbody").html(raw.split(";").join("<br>"));
    in reply to: Replace ; with line feed #23702
    Phil Grant
    Participant

    Thanks, I’ll give it a go, yes it is in the display form.

    in reply to: Alternating row style and pring #23666
    Phil Grant
    Participant

    Thanks it worked a treat.

    We were supposed to got to Sharepoint 2016 last August but it keeps getting delayed, hopefully now next month ….. I won’t hold my breath.

    Cheers,
    Phil

    in reply to: Alternating row style and pring #23646
    Phil Grant
    Participant

    Just to let you know that with IE and sharepoint 2010 this CSS doesn’t seem to work for me.

    I’m not looking at printing though, I just want alternate colours in the display form.

    Regards,
    Phil

    • This reply was modified 5 years, 3 months ago by Phil Grant.
    Phil Grant
    Participant

    Great idea, the result was “<P>​</P>”.

    Thanks,
    Phil

    Phil Grant
    Participant

    Alexander,
    I’ve been using the code above for a while and noticed that the ‘if’ statement seems to fail to catch an empty field, the date and user ID is always added to the log field even if new comment field is empty, this results in long strings of times and names when nothing was changed.

    Not sure why this would happen.

    Phil

    in reply to: Shorten Label fields #22051
    Phil Grant
    Participant

    It worked when I put it in the custom CSS section.

    Thanks

    in reply to: Shorten Label fields #22038
    Phil Grant
    Participant

    I’ll give it a try tomorrow and add a screenshot if it doesn’t do what I need.

    Thanks.

    in reply to: Totals row in a table chart #21847
    Phil Grant
    Participant

    Alexander,
    Just to let you know that your solution works great,

    Thanks,
    Phil

    in reply to: Totals row in a table chart #21841
    Phil Grant
    Participant

    Thanks, we should be switching to SharePoint 2016 Enterprise later in the year, hopefully it will be easier to use!

    in reply to: Totals row in a table chart #21837
    Phil Grant
    Participant

    I just opened it in Chrome so I get a similar look to your and the CSS seems to have worked in Chrome …..ARGHHHH!

    I suppose i’s something to do with IE and sharepoint 2010 again 🙁

    in reply to: Totals row in a table chart #21832
    Phil Grant
    Participant

    Sorry, still not working.

    in reply to: Totals row in a table chart #21824
    Phil Grant
    Participant

    Alexander,
    Tried it this morning but doesn’t seem to work.
    I added a CEWP webpart and pointed to a CSS file in the SPJS folder
    The left alignment works so the file is being processed but the totals row isn’t affected at all.

    
    
    <style type="text/css">
    .spjs_filterPlaceholderInner{
        text-align:left!important;
    }
    .google-visualization-table-table tr:last-child td{
    	font-weight:bold;
    	color:red;
    }
    </style>

    Cheers,
    Phil

    • This reply was modified 5 years, 8 months ago by Phil Grant.
    • This reply was modified 5 years, 8 months ago by Phil Grant.
    • This reply was modified 5 years, 8 months ago by Phil Grant.
Viewing 15 posts - 61 through 75 (of 134 total)