Forum Replies Created
-
AuthorPosts
-
This was fixed in v4.4.5.45 back in July 2022: https://spjsblog.com/dffs/dffs-change-log/#DFFS_v44545
Upgrade and the problem should be fixed.
Alexander
Which version of the classic DFFS are you running? (hover over the “Enhanced with DFFS” link and click “License and version information.
Alexander
I think I have missed your other question regarding email current tab – where can I find it?
Alexander
I see now what was wrong – when addressing by ID you must prefix the selector with “#” and not “.”.
I didn’t notice it in your code snippet, but if you change it from this:
.sbs_OuterTable_4 { outline: 2px red dashed; outline-offset: 2px; }
to this it should work:
#sbs_OuterTable_4 { outline: 2px red dashed; outline-offset: 2px; }
Alexander
I see now what was wrong – when addressing by ID you must prefix the selector with “#” and not “.”.
I didn’t notice it in your code snippet, but if you change it from this:
.sbs_OuterTable_4 { outline: 2px red dashed; outline-offset: 2px; }
to this it should work:
#sbs_OuterTable_4 { outline: 2px red dashed; outline-offset: 2px; }
Alexander
Try setting the border on the table and not the tr using this ID (from your screenshot it looks like you have the SBS index set to 4):
.sbs_OuterTable_4 { outline: 2px red dashed; outline-offset: 2px; }
Alexander
Can you show me a screenshot of the field after you right click and select “Inspect” (I need to see the HTML code in the developer tools).
Also, show me a mockup of what you are looking to make the border around so I know you are looking at the correct solution (this is specifically to highlight side-by-side fields).
Alexander
November 5, 2024 at 19:49 in reply to: Feature Request: Different ways of showing date in email #38217Hi
I’ll add support for specifying the dateformat when selecting from the “Add dynamic content” menu in the next version, but as a workaround you can add this to your Custom JS (replace DueDate with the actual internal name of your field):var myCustomDate = ""; // Must use var an not let to make it globally available function dffs_PreSaveAction() { const date = getFieldValue("DueDate", "dateObject"); const formatter = new Intl.DateTimeFormat('en-US', { day: '2-digit', month: '2-digit', year: 'numeric' }); myCustomDate = formatter.format(date); }
Now add this variable to your email body like this:
myCustomDate: [[variable:myCustomDate]]
Alexander
You must add the CSS code to the Custom CSS tab. Where you put it now, only custom styling of the read-only fields are supposed to go (and then without the ID selector).
Alexander
You can try using this Custom JS instead of using rules to detect the change on the PP.
function peoplePickerChanged(fin){ var currPPvalue = spjs.dffs.beforeProperties[fin]; if(currPPvalue.length === 0){ console.log("The field is empty on form load"); } setInterval(() => { let val = getFieldValue(fin); let isResolved = spjs.utility.getFieldValue({"fin": fin, "key": "isresolved"}); if(!isResolved.includes(false) && String(currPPvalue) !== String(val)){ currPPvalue = val; console.log("Changed to", val); if(val.length === 0){ console.log("Is empty"); } } },1000); } peoplePickerChanged("PeoplePicker1");
Alexander
I need to see a screenshot of the “Prefill values in child” section in your vLookup config. Also make sure the field names are correct and that there is actually a value in the “From” field.
Alexander
That will unfortunately not work because the suffix after the class is generated new on every page load. If you want to keep the reload button and only want to hide the label you can change it like this:
#vLookup_empty_7419064349689197 > div > div { display:none; }
I’ll add a separate ID to the label in the next version so you can address it by ID directly.
Alexander
Hi,
Are you using a rule triggering on form load or on field change?It can be done using custom js so If you can give me some more details I can give you a code example.
Alexander
Hi,
I’ll fix the change field issue in the next versionThe other issue can be achieved by setting the number of items to fetch to 0 and then use custom css to hide the “No items match the query” message.
Get the ID to the vLookup in the vLookup configuration (bottom of first tab) and change it like this (adding “empty_”) and add it to custom css:
#vLookup_empty_7419064349689197{ display:none; }
I have included a fix for this issue in the new v1.0.71.0 – see change log here – Let me know how it works out.
Alexander
-
AuthorPosts