Forum Replies Created
-
AuthorPosts
-
Maciek Grischke
ParticipantThanks for this!
I had to apply this rule in the holiday request form because people book holidays with wrong dates <facepalm>
Everything needs to be idiot proof lol
Maciek Grischke
ParticipantThanks.
I also added this bit to remove the gap left in front of the name.
jQuery(".ms-imnlink").remove();
Maciek Grischke
ParticipantI’m afraid I experienced issues with the latest version too in one of my biggest form with lots of rules.
Alexander I am happy to give you access to one of my test sites to see what’s actually happening.
I had to go back to 4.4.3.35 to get the form working again. I just realised by reading this thread my form has gone wrong.
On my test site, you will be able to compare the same list, V1 and V2. V1 installed with older DFFS and V2 installed with the latest DFFS.
Maciek Grischke
ParticipantBrilliant, this worked. I did try with dffs_editItemBtn, but I was missing the delay function. Thanks again as usual!
Maciek Grischke
ParticipantHi Alexander,
What I meant by conditions was:
If Variable:Stop is Yes
etc
I’m just not sure what they do.Yes, this picture was from “email current tab” – the image you see next to my name is something to do with “my presence” – normally when you click on my name, you will be taken to Delve page about my profile.
By default, there’s a small white square next to people’s name, when the email is sent, this white square becomes this huge image.
This is the element when I click to inspect it:
I can’t seem to paste this bit of code. Let me try again:
<i m g name="imnmark" class="ms-spimn-img ms-spimn-presence-disconnected-10x10x32" title="" showofflinepawn="1" src="/_layouts/15/images/spimn.png?rev=46" alt="No presence information" sip="grischke@domain" id="imn_5410,type=sip" data-themekey="#">
I also tried with FLOW and the issue with the image is the same.
-
This reply was modified 4 years, 1 month ago by
Maciek Grischke.
-
This reply was modified 4 years, 1 month ago by
Maciek Grischke.
-
This reply was modified 4 years, 1 month ago by
Maciek Grischke.
-
This reply was modified 4 years, 1 month ago by
Maciek Grischke.
Maciek Grischke
ParticipantThanks,
The only problem I have is that I can’t figure out what is the ID of Edit Button.I tried this (and few other IDs):
// Insert button jQuery("input[id$='_editItem']").before("<input type='button' id='_editItemBtn' class='ms-ButtonHeightWidth' style='margin-right:4px;' value='Re-open this ticket' onclick='saveForLater()' />");
but no luck 🙁
Maciek Grischke
ParticipantExcellent!
So here’s what I did:
// Insert button if case is Open function showCloseButton() { jQuery("input[id$='_diidIOSaveItem']").before("<input type='button' id='CloseTicket' class='ms-ButtonHeightWidth' style='margin-right:4px;' value='Close this case' onclick='closeTicket()' />"); } function closeTicket(){ setFieldValue("Status","Closed"); setFieldValue("DUC",false); var dateVal = new Date(); spjs.utility.setDateFieldFromDateObject("DateCompleted",dateVal,0); spjs.dffs.triggerSave(); }
Thank you!
-
This reply was modified 4 years, 1 month ago by
Maciek Grischke.
Maciek Grischke
ParticipantThanks Alexander. Obviously I had to upgrade DFFS to get the “table row” option.
It works great!Maciek Grischke
ParticipantI didn’t tick this option since I thought it would work without it on my Office 365.
I am configuring the workflow now so I can test all options. I wonder if it would work with MS Flow hmm.
Can you explain what those workflow conditions actually meant do?
Please look at the email I got when I include “appended” noted field.
How to troubleshoot this so maybe I don’t have to use the workflow?
Thanks
Maciek Grischke
ParticipantOk, I’ve managed to get it working by wrapping the jQuery inside a function and then calling the function with DFFS Rule.
// Insert button if case is Open
function showCloseButton() {
// var statusValue = getFieldValue("Status");
// if (statusValue = "Open") {
jQuery("input[id$='_diidIOSaveItem']").before("<input type='button' id='CloseTicket' class='ms-ButtonHeightWidth' style='margin-right:4px;' value='Close this case' onclick='closeTicket()' />");
// }
}The above code could be used within different rules based on if else conditions, but in my case, I just called this function based on the rule condition, so sections I didn’t need I commented out.
Hope this is the correct way for doing this.
BTW, where can I read about what I can do with within DFFS using different JS tweaks? For example, setFieldValue, getFieldValue – I would like to know what is available to play with?
Maciek Grischke
ParticipantHi Alexander,
I think what I meant was to be able to re-open the previously closed ticket.
I asked another question in a separate thread, but it’s for EditForm – I asked about hiding buttons based on fields values.
I think once the ticket is closed, I will want to hide Edit Button or change it to Re-open ticket and set the Status value to Open, and to re-open the ticket, the user will only be able to do this from DispForm. Is it possible to do from DispForm?
Maciek Grischke
ParticipantThanks Alexander, this worked, but I added
id='SaveForLater
to Save for later button
It looks like this now:
jQuery("input[id$='_diidIOSaveItem']").before("<input type='button' id='SaveForLater' class='ms-ButtonHeightWidth' style='margin-right:4px;' value='Save for later' onclick='saveForLater()' />");
Is this the correct way?
Maciek Grischke
ParticipantAlexander, is it possible to have “Save for later” button in DisplayForm?
Maciek Grischke
ParticipantThanks Alexander,
works beautifully 🙂
I knew I could count on you.
Many thanks, as always!
Maciek Grischke
ParticipantHi Alexander,
I want the last two date rows to be on the same level as MultiLine text field.
-
This reply was modified 4 years, 1 month ago by
-
AuthorPosts