Forum Replies Created
-
AuthorPosts
-
Thank you for the resolving the email issues.
Now, I am running into a different issue –
1. I want to save the form
2. then send an email.Added this code for save – $(“input[id$=diidIOSaveItem]:last”).click();
But the input box appears and closes as soon as I added this line.
I tried changing the order to first send the email and then save but still the same behavior.
I am good. It works. thanks
i was sing spjs.dffs.processEmailTemplate and it works fine but just doesn’t seem to work with alert
getting this error now.
POST
Email 400 (Bad Request)- This reply was modified 5 months, 2 weeks ago by Rad.
Also, is it ok to separate out the email call from the alert? The reason I am asking is, because email needs to be fired each time with different info based on various scenarios.
call alert code from function1
spjs.dffs.alert({
“title”: “Enter a return reason”,
//”msg”: <textarea> style=’width:100%;box-sizing:border-box;height;75px;’ id=’varFromAlertInput_input’></textarea>”,
“msg”: “<input id=’varFromAlertInput_input’ type=’text’>”,
“ok”: function(){
var fromAlertInput = jQuery(“#varFromAlertInput_input”).val();
htmlBody.push(fromAlertInput);
},
“cancel”: function(){
// Close dialog
}
});then call the REST_EMail from function2?
spjs.dffs.REST_Email({
“to”: “” + jsEmailTo,
“cc”: [],
“bcc”: [],
“subject”:””+ sbj,
“body”:”” + jsEmailBody + fromAlertInput
});getting an error for this line
msg”: <textarea style=’width:100%;box-sizing:border-box;height;75px;’ id=’varFromAlertInput_input’></textarea>
VM12250:1 Uncaught SyntaxError: Invalid or unexpected token
Please ignore this question, found a solution.
Another q around multiselect checkboxes – Wondering if there’s already a built in functionality wherein if a checkbox is selected then rest of the boxes can be disabled?
perfect!
I was able to achieve the desired functionality using rules. Thank you for the guidance. Only think left now is the multi choice checkbox alignment. In the read only mode, the checkboxes all align vertically. I’ve around 30 so need them to align some horizontally. I am using the below function and it works great in edit form but not when I set the field to readonly.
function multichoiceVertical(arr,breakAfter){
var toFind, index, counter, table;
toFind = “td.ms-formbody”;
if($(“td.ms-formbodysurvey”).length>0){
toFind = “td.ms-formbodysurvey”;
}
$.each(arr,function(i,fin){
if(fields[fin]!==undefined){
index = 0;
counter = 0;
table = $(fields[fin]).find(toFind+’ table:first’);
$(table).prepend(“<tr id=’vertical_”+fin+”_”+index+”‘></tr>”);
$(table).find(‘tr:first’).nextAll().each(function(){
if(counter%breakAfter===0){
$(“#vertical_”+fin+”_”+index).after(“<tr id=’vertical_”+fin+”_”+(index+1)+”‘></tr>”);
index += 1;
}
$(this).find(‘td:first’).appendTo($(“#vertical_”+fin+”_”+index));
$(this).remove();
counter += 1;
});
}
});}
thank you, I was able to install the latest version but the issue of some fields still showing in edit mode and the checkboxes losing their alignment still persists. I can confirm that there are no additional rule set for those fields.
- This reply was modified 5 months, 3 weeks ago by Rad.
Excuse my ignorance as I am new to DFFS and trying to catch up.
I am trying to upgrade to v4.4.5.51 and using a custom DFFS name located in a different path but the default DFFS file location appears within the content editor. How do I change the root path? Pls see attached screenshot.This is the message that appears within the content editor:
DFFS file location: /sites/TLP_Intake/SPJS/DFFS. The dffs_folder_location variable is set to “root”.Actual path of installer file:
/sites/TLP_Intake/DUA/SPJS/DFFS_v44551_20240428/installer/Installer_CEWP_code.htmlAttachments:
I’ve Dynamic Forms for SharePoint v4.4.5.43 – March 27, 2022
tried it and same results. Fr some reason the same 6 fields are not being set as read only. in addition the check boxes get aligned to one column.
tried using wrapChoiceField function as well but it doesn’t work with setTabToReadOnly fucntion.
-
AuthorPosts