Reference a custom field in NS on the standard HTML transaction form/SO email form - html

Does anyone know how to reference a NS field in the standard HTML form?
I have a custom field on my SO that links to our external website. The field uses a formula to pull the NS SO internal ID to create the link so we can send it out to the customer. That field works perfect and I was able to get that link to display properly as an element on the standard PDF form layout that gets emailed to the customer as an attachment on the SO notification email.
Now, here is the issue, I don't know how to reference it on the "a href" html tag in the HTML code on the transaction HTML layout. I know the field name/backend ID, I just don't know how to reference it in the "a href" html tag, this is what I have so far:
Securely View, Edit, & Track the status of this order
(in the curly brackets is my field name and I removed the carrots so the exact code would show up in this text box)
Does anyone know how to get that field from the SO form to show up in the Transaction HTML Layout form?

Actually I figured it out. I needed to have the href set as <NLCUSTBODYPG_LINK_SO>.

Related

Embed Variable in href mailto link

Good day,
We are currently making use of Mimecast to tag stationary on the outgoing emails. In Mimecast you can sync attributes from Active Directory for use in personalized email signatures, etc.
I am currently trying to configure a mailto link that uses the "Display Name" attribute in the link, to add the senders name to the subject of the email.
However I cannot get to work. Also in the Mimecast HTML editor no var variables can be passed as it only allows basic HTML.
The Mimecast attribute for display name is pulled with the following piece of code...
<mc type="variable" source="from" attribute="displayName">
This needs to replace "FirstName%20LastName" in the code below.
<mc type="clickimage" code="imagebottomleft">
Kind regards,
Renier
I took a look at the specification (RFC2368), and it does not seem that this feature exists.

Mask a {Common:ItemURL} in Nintex workflow

I have a form library in SharePoint 2013 with form names that have an ID appended to the end of the name, so it appears to be "Form Name-26". My customer does not want the "26" to display.
So, I have been trying to create a workflow that will start whenever a form is created. It can pull the Item URL without any problem, but then I want to 'mask' the URL. I was trying to use anchor tags within the "Set Item Value" workflow action, but this actually displayed everything and didn't read the html.
Here is the code I am trying to get to work.
<a href:ItemURL>Click here to open the form</a>
I ended up figuring out the answer to my own question.
I created a calculated column in SharePoint and set the data type to number.
Then I put in the following:
="<a href='Beginning of Link"&[Str Filename]&"'/>"&Year&" "&Department&"</a>"
This ends up 'masking' the link with the Year and Department (2 other fields I have in my library) and using the filename for the form in the link so that it dynamically changes for each item.

Clipboard functionality in email template

I want to send a coupon code in the email template.
A Small button that will copy the content of a input element on the clipboard.
By email Template, i mean i want to send a email which will have a coupon code and there will be a button in the email template which will allow me to copy it to clipboard. Can this be done?
Any help will be appreciated.
Considering that javascript cannot be added inline to the email template, i couldnt think of any other solution.
Short answer is No - This feature would require Javascript.
Long answer - Yes (in a different way) - You could use unique query strings on the button URL (eg ?USER=1&COUPON_CODE=123) that way you could automatically carry the unique coupon code from the email to the landing page form field.
To do this you could assign each member in your database a unique coupon within the CSV file (or whatever you use) and set up a merge field within your ESP and use that to automatically create the strings. For example, your string would look like this when you code it href="http://www.yousite.com/?[%coupon%]" and your ESP will do the rest providing the database is set up correctly.
Hope that makes sense.
Since clipboard's content is changed with javascript, there is no way to do that in an email.
You could, however, build an URL with the coupon code as parameter.

Adding hidden data to HTML MailTo URL

I'm trying to send an email with hyperlinks with "mailto", to email me back. I'm trying to automate the replies as they come in using mailitems in VBA, for example:
Dim Item As MailItem
Set oItems = Outlook.Session.GetDefaultFolder(olFolderInbox).Items
For Each Item In oItems
etc. And searching for key words/IDs to indicate which link the sender has clicked, however the chance of the sender changing the subject or body of the email would be a spanner in that plan.
Is there a way that I can embed some hidden data (like an ID and yes/no response, for example) in the HTML of the mailto in order to properly identify the emailer, even if they change all the visible email data, and then what is the best way of accessing that data using code similiar to the above?
Is there a better way of doing this? Am I approaching this the wrong way? or am I totally barking up the wrong tree?
Thanks for your help!
You won't be able to pass an hidden data with a mailto, everything could be changed by the sender.
A better way of doing it is to make a little form in HTML & PHP (for example), with in your emails a link to this form passing the ID in the url, then retrieve this ID in your form, then saving this ID when the form is submitted.
You could also make links in your emails pointing to a redirection page saving the ID passed in parameter in the url then redirecting to the mailto: final 'link'. It would allow you to know who clicked on which link in your emails.

Add an html checkbox in OTRS ticket submit page

I'm new to OTRS and I have to add an HTML checkbox with some text in the ticket submit page. Essentially, I need the user to accept a privacy statement (clicking on the checkbox) before he submits a new ticket. Hence, the submit button has to be enabled only after the user clicks on the checkbox. How can I do this?
I know HTML, but I don't know OTRS architecture so I can't figure out how can I modify HTML pages.
In Kernel->Output->HTML->Standard I've founded HTML templates (*.dtl), but:
I don't know which elements are part of ticket submitting page;
I don't know if I need to modify an existing template, adding HTML, or to create a new template (in this second case I think I should modify some perl module that call the layout, but which one!?!)
I'm trying to open .dtl files to understand which I've to modify, but Firefox can't render them correctly; how can I open them?
If you want customers to accept a privacy statement you don't need to code.
You can simply go to Admin > SysConfig > Framework > Frontend::Customer and activate the CustomerPanelPreApplicationModule###CustomerAccept module, and the InfoKey and InfoFile values. When the customer logs in the text in the InfoFile is displayed and the customer needs to accept this. After accepting the InfoKey is stored in the User Preferences. This way the system will not bother asking permission to the customer again, and if you might change the policy you can change the key as well, displaying the message when needed.
For your questions on .dtl files: these are plain HTML files, but different blocks are rendered by the files located under Kernel/Modules.
If you want to modify the page that is used for submitting new tickets, it's this file:
CustomerTicketMessage.dtl. You can edit these files with any text editor.