Forum Replies Created
-
AuthorPosts
-
May 20, 2021 at 07:16 in reply to: on click of save – show alert while preSave is running code? #33561
I got the newest version.
Dynamic Forms for SharePoint v4.4.5.24 – May 5, 2021, and double dialogues still occurs.Also I would like to use it for newForm but I tried to save the form with some fields required were blank, I could not end the dialogue. The dialogue should appear only when the all required data fields are filled and the save button is hit.
Thak you Alex,
Steo
May 19, 2021 at 14:20 in reply to: on click of save – show alert while preSave is running code? #33547Hello, it works, thank you, but the dialogue shows twice.
I use the rule “The form is saved” calling the function you posted above.
See the attachment.Thank you for a piece of advice.
SteoAttachments:
I’ve attached a screenshot of cascading dropdown configuration.
I know that the exclamation mark is there for a reason, but what should I do? How to clean the datasource?
I have a list that looks like this (2nd attachment). What should I clean? Can you give me an answer or redirect me to some thread?
Thank you, SteoUPDATE: I got it, I did not mention the extra white spaces. Thank you. I thought there must be a mistake that the exclamation mark warns me about extra white spaces that don’t exist. Now I found them :-))
- This reply was modified 3 years, 7 months ago by Steve.
Attachments:
Hi, of course:
1. Here are my fields of the list
2. Rule which triggers the error – but only sometimes – it triggers the rule which should hide exclamation mark with setTimeout.
3. Custom JS – custom code.When I use a file “casc.js” from February/07/2021 – version 4.4.5.16
The error does not appear in the developer console.
Thank you Alex,Steo
Attachments:
Thank you, Alex, the workaround with the calculated field worked perfectly. For Czechia we must use this formula:
=HODNOTA.NA.TEXT([Created];"DD. MM. YYYY")
//For people from this country
Yes, one of the fields is being empty until the product is chosen. Then, “hodnocení do DFFS” is filed by the date. If this field is filled, the other rule took this value and set another field with this date (I earlier used custom JS). Now with the right formula, I can do better.
Thank you so much for a quick reaction.
Steo- This reply was modified 3 years, 7 months ago by Steve.
I’ve also updated to the latest version and it’s still not working, but another error occured in Chrome console:
Uncaught TypeError: d.split is not a function at String.eval (eval at <anonymous> (SPJS-casc.js:10), <anonymous>:1:19840) at Function.each (jQuery.js?v=1620900533451:2) at Object.eval (eval at <anonymous> (SPJS-casc.js:10), <anonymous>:1:19714) at Function.each (jQuery.js?v=1620900533451:2) at Object.setFields (eval at <anonymous> (SPJS-casc.js:10), <anonymous>:1:19643) at Object.fill (eval at <anonymous> (SPJS-casc.js:10), <anonymous>:1:20638) at eval (eval at <anonymous> (SPJS-casc.js:10), <anonymous>:1:27434)
It looks like I got it working:
function endOfQuarantine() { let d = spjs.utility.getDateFieldAsDateObject('positiveSince'); let dd = new Date(d); dd.setDate(dd.getDate()+14); let day = dd.getDate(); let month = dd.getMonth()+1; let year = dd.getFullYear(); let finalDate = (day +". "+ month + ". "+year); setFieldValue('positiveTo',finalDate); }
Thank you Alex, I figured it out.
Field DFFS by SPJSBlog.com was in the content type set as “Hidden”.
Now, it works perfectly.Thank you Alex again, we’ve updated DFFS version to the latest. DateObject has started to work.
SteoYou’re a magician Alex, thank you, it works perfectly. I hope it will help other people someday.
Thanks.
SteoThank you, Alex, it helped me a lot.
In Czech, we have comma separator instead of a decimal dot.
And I changed the event from “keyup” to “change” and it works perfectly.
SteoOk, I hope it won’t be complicated and not delete all configuration.
I’ll let you know when I’m done.
It will probably take some time.
Thank you Alex,
Steo.Sorry, the output does not show anything. I should have added the attachment.
Attachments:
Thank you, Alex, so much.
It is not working:var due = spjs.utility.getDateFieldAsDateObject("objNaDate"); var todayAt0900 = new Date(); todayAt0900.setHours(9, 0, 0); if (due < todayAt0900) { jQuery("#part1").hide(); spjs.dffs.alert({ "title": "No access", "msg": "This item is locked because the due date has passed.", "ok": function () { location.href = location.href.split("EditForm.aspx").join("DispForm.aspx"); } }); }
Field Internal Name is OK. Developer console in Google Chrome does not show any errors.
Thank you.
Steo -
AuthorPosts