Email URL reverts to text on refresh of webpage - html

I have a Domino form that has a computed RTF that pulls text from a field using an #DbLookup. The text contains an email address enclosed in <a </a> brackets. When the page loads, the email address appears as expected. When a user clicks a search button that runs an agent to refresh a subsequent field, it replaces the email address with the exact text including the <a </a>.
The text (marked as Pass-Thru HTML in the field) is:
Below are the groups that you have authority to administer. Please select one. If you have other groups that you would like to administer online, please email EmailAddress#Organization.org.
The code in the RTF to pull it is:
#DbLookup("Notes":"NoCache";#DbName;"vwContentForms";"OtherReporting";#ThisName)
When the page first loads, it displays properly.
Below are the groups that you have authority to administer. Please select one. If you have other groups that you would like to administer online, please email EMailAddress#Organization.org. with the email address marked as a link.
After pressing a search button on the form that refreshes the page, it replaces the text email EMailAddress#Organization.org with email EmailAddress#Organization.org.
What am I missing or doing wrong?

Midway down in the documentation for #DbLookup, it says
When you use a fieldName to perform a lookup, the value returned is the value that is actually stored in the field; it may be different from what displays in the view. Domino® can retrieve data from any field in any document displayed in the specified view, but if the field isn't displayed as a view column, Domino® must search the entire document to find the field, which may result in a slower lookup. You cannot retrieve data from a rich text field using #DbLookup.
This might mean "It kind of works sometimes, in some situations, but sometimes doesn't and we're not intending to fix it."

Related

Rich text editor replaces characters with html

Oracle apex version: 20.1
I have a form in which the user can copy and paste email chains into a rich text editor form field. The form field is based off a column in my table that is stored as a CLOB. As you can see here: Form Field Displaying Email the rich text editor does an amazing job at preserving the characters, indentations, and the image as well.
The problem is we save hundreds of these emails, so when we have to provide information to an outside source we have to include all of these emails. We obviously don't want to have to click into each one of these records and copy/paste the email into a file and send them one by one. So I created a report that can display all of them at once, then use a print feature to save the report as a PDf. The description column is of type: Remove HTML. Report Displaying Email (This is the same email but I also pasted the reply to the email on top)
As you can see it has problems when it runs into certain characters. Almost all apostrophes are replaced with either ’ or '. Bullets are replaced with • and greater/less than signs are replaced with >. My character test line of !##$%^&*(){}><?/ displays as !##$%^&*(){}><?/
Is there a better way to format all of these emails so they can be downloaded into one file (pdf)? How can I tell apex to leave all of those characters alone while still removing the html?

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

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>.

How to validate input in a field on webpage without reloading the webpage?

(I am a beginner in django and html)
How can I weed out spam entries in a particular field while taking input from a user?
Also, how to show a message to the user that the entered value is not accepted because it's a spam, without reloading the webpage.
For eg., in the field shown in image, if the user enters a number or something like test123 or something else that's not a proper name, my webpage should show a message to the user without loading the webpage that the entered value is not valid. I am also okay with putting a button that says validate to validate this name field value. How can I achieve this using Django+html+jquery?
Easiest way is to use the pattern attribute:
<input type="text" pattern="[A-zÀ-ž][A-zÀ-ž\s]+">
The browser will automatically check when you submit the form.
A-z stands for: latin characters.
À-ž stands for diacritics.
\s stands for space.
Note that the above patters requires the name to start with a letter and have at least 2 characters to be valid.
In Django you can define your form field like so:
full_name = forms.CharField(label='Full name', widget=forms.TextInput(attrs={"pattern":"[A-zÀ-ž][A-zÀ-ž\s]+"}))

URL to fill input fields

There is a website that I use regularly that has quite a few log in fields. I'm trying to formulate a link to pre-populate most of them.
The fields in question are formatted like this:
<input id="frm:User" type="text" name="frm:User" autocomplete="off" style="width:80%" />
I've tried using "http://website?frm:User=User&frmGroup=Group" to no avail. Any suggestions?
Thanks!
There exists no standard way to fill in HTML inputs by passing values into the URL's query string. The URL including the query string parameters is sent to the server as a request, and the server generates the HTML as a response. It's completely up to the remote server how to interpret the incoming query parameters and how to generate the HTML.
What is the reason exactly you want the fields for this particular site to be auto filled? Maybe a password manager like lastpass could do the trick for you?
If you are using Google Chrome, this can be done pretty easily with Autofill extension. All you need to do is:
Install Autofill extension.
Open the website page that you want to auto fill input fields. Activate the Autofill extension.
Fill the input fields manually and then save it to a profile.
Click "Generate Autofill Rules". Next time, when you visit this page, the input fields will be filled automatically.

Why cant I add a URL as a prefilled Wufoo field entry?

I am trying to write some code that will put the current tabs URL into a wufoo form as a default value in the form hash. The code works fine but the wufoo form doesn't want to cooperate. instead of filling the correct URL (Say https://wufoo.com for example) it drops one of the / characters. This also happens if you skip the code and simply type the URL hash as in the example below:
https://ownthistown.wufoo.com/forms/q1d68ngv1qovy1o/def/&field1=http://wufoo.com
The field would show https:/wufoo.com as the entry. ANyone have any ideas why this is happening?