I have button in a page that will send an email. I have created a process for sending email (which is in built). The email is working fine.
My problem now is to assign to based on the form item (P5_email).
Also on the Email body, i would want to dynamically update the text based on the Items on the page
Anyone with the idea
Enter substitution string &P5_EMAIL. in Body Plain Text property of Send Email Process to include dynamic content in your text.
Related
I have a Insert form for Account Entity.
Once user create Record, I want to move to another page and show same record as Edit Form.
Does anyone have idea way to achieve this?
You should be able to redirect the user to desired page using OnSuccess of form submission.
On success: Select one of the following options:
Show success message: Requires a message to be displayed to the
user on successful submission of the form. You can also select Hide
form on success to hide the form upon successful submission.
Redirect to webpage: Redirects the user to the selected webpage
in the portal. You must select a webpage from the Redirect to webpage
list.
Redirect to URL: Redirects the user to the specified URL. You
must enter a URL in the Redirect to URL field.
Read more
Out of Box configuration helps!!!
There is a field on "Entity Form" records named "Append Record ID to Query String". This is to configure passing the id of the record to the page after form submission. This screenshot shows it in the Redirect Section in the classic interface
You can do this several ways. What I do, is use Navigate() to go to the new screen, and I pass in a context variable to the new edit screen.
Assuming you're using OnSelect() on a button to call SubmitForm(), you can do the Navigate() call via the OnSuccess() property of the form.
And within Navigate(), you just pass whatever data you need to in order for the next screen to properly bind it to the Edit Form. This is the UpdateContextRecord optional param. You'd have the Edit form take its values from a Context Variable.
Passing variables between screens has been discussed here, as well.
I'll start by saying, I'm new to Oracle Apex.
I have an application prepared that can take in user inputs. On choosing the 'create' button these are saved to a table row AND an email is fired.
The email is built in HTML as a process. It takes in the page items displays them in a particular order in the html and sends to chosen recipients.
Can anyone suggest how a preview of the email could be viewed? Or point me to a tutorial that explains/demonstrates?
You can use a DisplayOnly item to display p_body_html if you are using APEX_MAIL.SEND.
Remember to Set Escape special characters on it to No.
I have a form that I want to include on each of 250 pages based on the same pageType. Thus I want to include the form reference in the template and have it render on all pages. this much seems to be working.
However, I want to have the form to trigger an email send to a different email address based on the pages contactEmail property (entered as a property of the page/ defined on the pageType)
I am guessing I will have to build a custom form control or alternative form, but I don't know where to start and I have been pouring over the documentation for days.
I tried enabling email notification and setting {% CurrentDocument.ContactEmail #%} as the recipient email, but that does not seem to work.
I am not sure what context I can use macros in the form building or if there is a way to reference the current document field values within the form.
CurrentDocument is not available when sending an email, but it is when saving a form. As a workaround I'd suggest you adding a new field to your form e.g. ContactEmail and setting {% CurrentDocument.ContactEmail #%} as a default value for it. Now you need to make sure fields is on the page, but hidden with CSS - use a custom layout or an alternative form.
Now when saving form data, the system will save CurrentDocument.ContactEmail value along with form.
The last step would be updating To field under Email Notification tab of the form with following macro {% ContactEmail %}.
This is for Oracle Apex 5.
I have a static content item on my login page, it has registration fields with a dynamic action button. Upon the click of the button their details are inserted into a table. I'd like the fields to disappear and 'registered. email verification sent' text to appear in that static content?
If that's not possible, is there a way for me to write that text underneath the registration fields and at the same time, clear all the fields - after button click?
If I understood correctly you have a Static Content Region (not item) with some text as source and you want that text to change if so i suggest you add a Display Only Item inside the Static Content Region and in that Dynamic Action simply change the value of the item using pl/sql, javascript or Set Value Dynamic Action.
Edit: You can use this plugin to have a timer that will run a Dynamic Action to change the text.
I'm not sure, that title is correct, but i'll try to describe my qyestion in more detail.
What i have?
In Lotus db i have view V1 with two columns - names and address. Also i have two forms (for simplicity - F1 and F2). F1 has two fields: "Recipient" (names) and Title (text string) and Button "Send". F2 also has field Title (text string). After opening DB person can choose one document from view V1 and press button "Create", which creates new document on F1, where field Recipient takes chosen address from view V1. Then person fills field Title and press button "Send" to send message for Recipient with doc.Subject = Title . On this stage everything is clearly understandable
What i need?
In this mail, Recipient should receive link for creating new document on form F2, with automatic filling for the field "Title" with the "Subject" value from this mail.
Notes has a feature called "Send form in document". I would use that feature when I send the message to the user. The message that you send would not be an ordinary "Memo". It would actually be a custom form with a button that contains your code, and it would appear in the recipient's Inbox just like an ordinary email.
To do this, I would create another form F3. This is the form that you will email. Add whatever fields you want to this form. Also add a button with code to open your database, create a document using F2, and populate the fields of F2 with the data that you sent in F3.
Then go into F1 and modify the code that is sending the message. (Since you haven't shown any of your code, I'm assuming in your LotusScript code you have named the NotesDocument variable "msg".) Change it to set msg.Form="F3", and then in your call to msg.Send be sure to set the first argument to true. This will activate the store form in document feature, so the recipient will get a copy of F3 included inside the message, and the button will be functional.
This is how I would solve it:
A document ("Doc1") is created using Form1.
The fields are populated and the 'Send' button is clicked.
The 'Send' button will create a new document ("Doc2") using Form2.
The code will populate the 'Title' field on "Doc2" with the value of 'Title' on "Doc1", and create a new email. The email will contain a doclink to "Doc2", so the recipient can click on it to open the document.
Save "Doc1" and "Doc2" and close both documents.
Use the AppendDocLink method of the NotesRichTextItem class to create the doclink.