Forum Replies Created
-
AuthorPosts
-
Disregard Alex, I figured it out…
Thank you for your awesome work!-Wilson
Hi Alex,
Thanks for adding this functionality!It seems only the “Valid” callback is working as expected?.
If I clear the field or leave partial text (invalid selection) in the field, I don’t get the expected alerts (‘spjs_ac_invalidSelectionCallback’,’spjs_ac_clearSelectionCallback’). Is there anything different that has to be set for those?Thanks again!
-WilsonAlex,
If we leverage the “.after” approach, how can we remove this later in custom JS after a condition is satisfied?I insert like this
jQuery("#sbs_Field_MyField").after("<td>"+html+"</td>");
Thanks,
WilsonHi Alex,
Any movement on this? I have a trial for Charts that expires soon, but without this ability, I don’t think it will get much traction.Thanks,
BobThat did the trick…
Thanks Alex,
BobHi Alex,
This doesn’t seem to work. It doesn’t insert anything.DFFS Version v4.4.3.60
SPJS-Autocomplete plugin v1.6.28Hi Alex,
This works great in most cases (ie…plain text boxes, SPJS Lookup fields, etc…), but when applied after an AutoComplete field, it seems to duplicate the icons? Is there a different syntax for adding to AC fields?
Thanks,
BobAttachments:
Hi Alex,
I am using the SBS so that I can append the “icons/buttons” behind the field.function fnNextActionToolStrip() {var html = "<HTML that includes buttons/>"; jQuery("#sbs_Field_NextActionContact").after("<td>"+html+"</td>"); }
If there is a better way where I don’t need to leverage the SBS in this scenario, please let me know.
Thanks as always!,
BobThanks Alex,
Made a quick tweak so I could control variables at runtime and Works like a charm! This will give me an email envelope icon next to the contacts’ name that opens mail client set to their email…function fnCustomerContactToolStrip() {var html2 = "<IMG src='https://abc123.sharepoint.com/Media/16x16/email_16.png' style='cursor: pointer; float: left; padding: 0px 0px 0px 5px'; title='e-Mail Contact...'; onclick='createMailToLink()'/>"; jQuery("#sbs_Field_CustomerContact").after("<td>"+html2+"</td>"); } function createMailToLink(){ var vemail = 'email@domain.com'; var vsubject = 'Test'; var vemailBody = 'This is a test of the Emergency Broadcast System'; var a = document.createElement("a"); a.setAttribute("href","mailto:"+vemail+"?subject="+vsubject+"&body="+vemailBody); document.getElementsByTagName("body")[0].appendChild(a); a.click(); }
Alex,
I was able to leverage this from the forums and it seems to meet my requirements! 🙂 If you think there is better approach, please let me know, otherwise Great job again!if(GetUrlKeyValue(“IsDlg”) !== “1”){
cssBuffer.push(“#sideNavBox {DISPLAY: none}”)
cssBuffer.push(“#sideNavBox {WIDTH: 0px!important;}”)
cssBuffer.push(“#contentBox {MARGIN-LEFT: auto!important;}”)
cssBuffer.push(“#contentBox {MARGIN-RIGHT: auto!important;}”)
cssBuffer.push(“#contentBox {WIDTH: 500px!important;}”)
$(“body”).append(“<style type=’text/css’>”+cssBuffer.join(“”)+”</style>”);
}Thanks again
-BobHi Alex,
Sorry for the delay, was pulled in a different direction for bit.. 🙂The reason is this…and maybe you have a better approach….
When a “NewForm.aspx” is used in a full window scenario (ie New button on list view) I style the form with CSS to be center position and no left hand navigation. When the form is called in a popup scenario, it is then shifted right and you need to use the scroll bar, not ideal.
If I remove CSS to hide left navigation, then it looks great in popup scenarios, but then not centered when in full screen scenario.
Any thoughts?
Thanks,
BobAttachments:
Alex,
Was this functionality incorporated to vlookup plugin? This would be a valuable attribute for the solution.Thanks,
BobHi Alex,
Yes I would like the user to be able to enter their own value, but I was hoping to force that based on the “Country” selection. We have all the “State & Province” data to support US, Canada & Mexico, but outside of those counties, I want the user to be able to enter their own value. So I want to trigger your “AddYourOwnValue” functionality based on the selection in the country field not equal to US, Canada & Mexico.Thanks,
BobWorks perfect Alex!
Thanks!
Bob -
AuthorPosts