Is there a way to make Outlook show only the caption of a link instead of the entire URL?

In my PDF file, I have set up a button for sending an email. The email is a request that needs approval or denial. I want the recipient to respond with just 2 clicks:

  1. Click on either "Approve" or "Deny" (a new email will pop up)
  2. Click on "send" - and it's done!

However, the links are currently lengthy and cluttered: https://i.sstatic.net/uCYMr.jpg Is there a way to shorten these links in Outlook to just "Approve" and "Deny" without any additional steps required in Outlook itself?

Context:
The sender wants to simply click "send" without having to do anything else in Outlook.
I am adding plain text from the PDF (refer to the image below), and I'm already pleased that Outlook automatically converts this text into clickable links. https://i.sstatic.net/9z7w0.jpg

I am using Adobe LiveCycle Designer for this PDF email feature, and here is the code executed when the email button is clicked within the PDF:

sendMail();

function sendMail(to, from, subject, body)
{
    to = (typeof to !== 'undefined') ? to : "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e99d8c9a9da99d8c9a9dc78d8c">[email protected]</a>";
    from = (typeof to !== 'undefined') ? to : "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c1b5a4b2b581b5a4b2b5efa5a4">[email protected]</a>";
    subject = (typeof subject !== 'undefined') ? subject : "Request Mail";
    body = (typeof body !== 'undefined') ? body : "Hello,\n\n please approve this request!\n\n";

    var subjectOk = "Request approved";
    var subjectNo = "Request denied";
    var responseOk = "Your request has been approved.";
    var responseNo = "Your request has been denied.";
    var linkOk = "<mailto:" + from + "?subject=" + subjectOk + "&body=" + responseOk + ":>";
    var linkNo = "<mailto:" + from + "?subject=" + subjectNo + "&body=" + responseNo + ":>";
    var links = linkOk + "\n" + linkNo;

    event.target.app.mailMsg(
            {
                bUI: true,
                cTo: to,
                cSubject: subject,
                cMsg: body + links
            }
    );
}

Is there a JavaScript function that can format my strings so that Outlook immediately recognizes them? Although the email format is "plain Text," Outlook still shows clickable links after sending the email. I am hopeful to find a way to hide these full links somehow.

Answer №1

If you stick to plainText body type, this is the outcome you can expect - limited customization options. To portray user-friendly titles, HTML is the way to go, but unfortunately, it seems AcroForms does not support it.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

emailProtected pre-publish: Running `python build.py && webpack` command

i am currently using scratch-blocks through the Linux terminal I have encountered a problem which involves running the following command: python build.py && webpack [email protected] prepublish: python build.py && webpack Can anyon ...

Creating an external JavaScript and CSS file for date picker in Eclipse can be done by following a few simple steps. By creating separate files for the

I am using the following javascript and css styles: <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css" type="text/css" media="all" /> <script src="http://ajax.googleapis.com/ajax/libs/jq ...

Sorting numbers in JavaScript from highest to lowest

I have the following variables: let var1 = 20; let var2 = 10; let var3 = 40; let var4 = 9; let var5 = 6; let var6 = 51; I am looking for a way to sort these variables from highest to lowest, and return their names in the sorted ...

Why does xpath insist on choosing spaces instead of actual elements?

Here is a list of countries in XML format: <countries> <country> <code>CA</code> <name>Canada</name> </country> ... etc... </countries> I am looking to extract and loop through these nodes, so ...

Distinguishing between el and $el in Backbone.Js: What sets them apart?

I spent the entire afternoon struggling with this particular issue, but finally managed to resolve it. It ended up being a mix-up between assigning el and $el. Can anyone clarify the distinction between these two terms and provide guidance on when to use ...

How does NodeJs handle ongoing tasks and processes seamlessly?

One interesting concept is the Event Loop, which accepts callbacks and executes them as needed. As far as I understand, this operates on a single thread event loop, meaning only one callback is executed at a time. Consider the following example: setInterv ...

What is preventing my application (docker) from connecting to the database?

Encountering a frustrating issue here: I've developed a NodeJS application with a server listening on port number 3000. The app includes simple operations such as post, put, and read, which interact with a database running in a Docker Container on por ...

When an object is pushed into an array, it gets duplicated and also appears in a proxy when viewed in the console

Working with Firebase 9 and Vue 3 in building a chat application. The issue at hand is that when I push message objects to the messages array [], the console shows duplicates like this: Proxy {0: {…}, 1: {…}} [[Handler]]: Object [[Target]]: Array( ...

Extracting the id of an element using jQuery

The desired outcome is for the code to print the id of the selected div, but it's not working as expected. I've reviewed it multiple times but couldn't pinpoint the error. Any assistance would be greatly appreciated. Here is the HTML: < ...

Getting the Value from a Promise into a Variable in a React Component

I am currently immersed in a React project where I am utilizing the Axios library to retrieve data from an API and store it in a variable. After scouring the internet, it seems that the only method available is through Promise.then(), but this approach si ...

Importing JavaScript into an Angular component: A beginner's guide

Within my Angular-11 project, I have included the following JavaScript file: "node_modules/admin-lte/plugins/bs-stepper/js/bs-stepper.min.js", I have added it to the angular.json configuration as detailed above. import Stepper from '.. ...

Verify the identity of my Angular application to enable collaboration on a GitHub repository

In my current project, I am utilizing a specific function to retrieve the list of collaborators for a particular repository. Here is the code snippet: var getCol = function(username, reponame) { var repo; var repoUrl = "https://api.gith ...

Generating a JavaScript array containing all elements belonging to a specific class name

As I work on my website, I am attempting to create an array from elements that have a specific class. This array should retrieve the videofile attribute value from all `a` tags with the class `videoLink`. The desired values in the final array should be: ...

Guide on invoking a Python function using vanilla JavaScript within a Django application

I'm currently developing a Django application and I'm attempting to invoke a Python function in views.py upon clicking a button. I'm aiming to achieve this using vanilla JavaScript, as my knowledge of JavaScript is limited and I prefer to ke ...

What is the best way to determine if an AJAX response is of the JavaScript content type?

There are multiple forms in my system, each returning different types of data. I need to be able to distinguish between a simple string (to display in the error/status area) and JavaScript code that needs to be executed. Currently, this is how I'm ha ...

Having trouble with sending emails using expressjs and nodejs

I'm encountering an issue with sending emails on the submit button in a website using expressjs and nodejs. When I try to send an email on the post call, I receive the following error in the console. I am utilizing nodemailer for sending the email. E ...

Attempting to utilize Vue js to connect to an API

I'm currently facing difficulties while trying to access an API in order to retrieve data. As a novice in the world of vue.js and javascript, I encountered an error message saying Uncaught SyntaxError: Invalid shorthand property initializer. Unfortuna ...

Encountering the error message "Unexpected token. Did you mean {'>'} or &gt;?" when trying to use an arrow function in React

I recently started learning React and Javascript. I encountered an error message that said: "Unexpected token. Did you mean {'>'} or &gt;?", specifically in relation to the "=>" part of the code below. This issue arose while I was worki ...

Obtaining serverTime from a webpageWould you like to learn

Is it possible to retrieve the serverTime using jquery ajax functions like $.get() or $.post()? I am looking to store this serverTime in a variable that can be utilized later on in javascript. You can access the webpage at: To use the get and post functi ...

I am experiencing difficulties in accessing the DOM

I have implemented jQuery $.ajax to dynamically load data into table rows as shown below: <table id='row-data'> <tr><td>1001</td></tr> <tr><td>1322</td></tr> <tr><td>15 ...