Stop AppMaker deleting email address onSend - google-app-maker

Im just learning AppMaker and I have followed along the tutorial on sending email https://developers.google.com/appmaker/tutorials/call-scripts/
It works as expected so I decided to bring it to another level by integrating it into my sign up form.
-- ISSUE OUTLINE --
A user enters their name and email in a standard signup form.
This is saved as expected this data is presented on the follow up page I created (see screenshot below)
When the admin clicks on the blue email button it opens up the email box (see attached image) and the users email is pulled into the To: box as expected (I have pulled the email by binding it to the text field).
The admin then sends the email which is sent as expected but then the form clears the To: field deleting it from the users entry.
-- QUESTION --
Can anyone advise on a solution it would be greatly appreciated :-)
Screenshot:

In the tutorial you mentioned, there is 'clearEmailForm' function that is called in case of successful sending email. I think you can delete code, that clears 'to' field:
/**
* Clears the entire email form
*/
function clearEmailForm(){
var formWidgets = app.pages.Email.descendants;
...
formWidgets.To.value = ""; // Delete this line
...
}

Related

Google form: Can I add a hyper link that will be opened on a new tab?

I have no idea how to add a hyperlink (that will be opened on a new tab) in a Google form. I know how to do in HTML but I don't know how to do in a Google form.
I have just added a link in the "Confirmation message:" of presentation area of the Google form settings.
...
I think this HTML code cannot be applied to a Google form: (target="_blank")
https://forms.gle/AGz1ngWM7fZXLJkv7
In order to link to another Google form after submitting the quiz, I would like to add the link that can access this other Google form before/after viewing the quiz results. But if I click on the link for this other Google form before/after viewing the quiz in the current tab, I cannot go back to viewing the quiz results.
If it is not applicable to add a link that will be opened on a new tab, it is acceptable to add a link in the quiz results. However, I have no idea how to add a link in the quiz results page.
This is a demo of my quiz form: https://forms.gle/rKrcSh1aGVAeY4sR7
...I have no idea how to add a link in the quiz results page
You cannot.
Fortunately there is a workaround
You can create a small script in the spreadsheet that will send an email to the submitter upon submission of the form.
Go to Tools -> Script editor...
When in the script editor, erase all the presented code and replace it with the following:
The code:
// Email the submitter including a HYPER-LINK
function Hyper2Them(e){
var theirFirst = e.values[4];
var theirLast = e.values[5];
var theirEmail = e.values[1];
var myEmail = "myemail#xyz.com";
var theQuiz = e.values[3];
var subject = "About your Quiz: " + theQuiz;
var message = " Your current EMAIL is: " + theirEmail + "\n To: " + theirLast + " \n\n Dear: " + theirFirst + " \n We will be sending you an EMAIL with your results from: " + theQuiz + " \n Till then please follow instructions found on this address: https://www.google.gr/ ";
MailApp.sendEmail (theirEmail, subject, message);
}
Save
Authorize
Now click on the clock icon on the toolbar and on the new page, set up a trigger for On form submit and save the trigger.
Test and Enjoy!
Notes
The e.values 1, 2, and so on, correspond to the columns on the spreadsheet where the answers are submitted. Keep in mind that the numbering for the columns start with 0. (Zero being the column reserved for the timestamp.)
*You can read all about limitations on Google accounts and triggers at: Quotas for Google Services and Simple Triggers
Another workaround:
Each form has a linked spreadsheet.
Add a sheet with your link or links to this spreadsheet and publish it to the web.
Place the link to the published spreadsheet into the Confirmation message. Moreover you can use formatting on this page.
There is a slight two step workaround for this. Thinking outside of the box... If you have a public webpage / website (if not note you can use a public blogger page for free), you can create a page and add a hyperlink that opens into a new window using either the page WYSIWYG editor or html code. Once the page is ready, in the Google Form "Confirmation Message" you can add the full URL of that page to the message. Note you MUST include the http:// or https:// because this will then open the page within the same iframe as the Google form. If you do not add http it will not load! Within that iframe the form submitter will then view the page you created and when they click the link in that page it will open into a new window. Use common sense. In the "Confirmation Message" tell the submitter what to do, for example, "Click the following links to go to the next section".

How to refer to a user in chat with their UIDs?

I have an array of User IDs which I've set as admins and I would like to print them to clients when they call the /admins command.
The main issue is that I couldn't see or find a way to print a placeholder entity (it's mention in this case) which opens a chat window with the IDs I've specified.
Remember that when you post #username in a chat, Telegram simply binds it as a mention to the referenced user and it jumps on a chat window when you click on it. I wonder if there is an equivalent for #123456789, where the number represents the User ID.
if you create/send a message from a bot, you can set parse_mode to HTML, then send text/caption with HTML anchor tag same this:
for contact me, just click here
but if you want to send message as user, you can just use userName prefixed by #, and creating manual link to tg://user?id=123 or type plain text like tg://user?id=123, don't work in Telegram now. yes; just in iOS (less than 15% of Telegram user) that work since 2013!

Gravity Form query string appends '|:||:||:||:|2372' to the end of the data

Right now I'm trying to create a custom confirmation page to be displayed to the user after they finish filling out one of my forms. This custom confirmation page will use some of the data that they entered into the form. Right now I only have 3 fields: name, phone number, and a logo image.
So I went into the Settings->Confirmations section of my form and set Confirmation Type to Page, chose the page, and checked off 'Pass Field Data Via Query String'. Then I entered in the string 'gym_name={Gym/Program Name:2}&gym_phone={Gym/Program website and/or phone number:3}&logo={Logo:4}'. The logo parameter is passed as the image src url.
I ran through a quick test of my form and after filling it out, all of the data was successfully sent to the confirmation page, with one problem. For some reason, Gravity Form appends '|:||:||:||:|2372' (it's not always 2372, it's different every time) to the end of the logo section of the url. This happens no matter where in the query string I put logo, and it does not get appended if I don't include the logo.
Does anyone know what the cause of this is, and how to stop it? Thank you in advance.
I'm assuming the Logo field is a Post Image field. If so, you'll need to use the :url modifier to retrieve only the URL.
&logo={Logo:4:url}
More details here: https://docs.gravityforms.com/post-image-merge-tags/

Create a hyperlink to a specific email message

I developed a paging application to send emails and text messages to our users. We want to be able to create a hyperlink within the message that points to a specific email message on our company SMTP server.
I can send a text message that creates a link to Outlook doing this: https://mail.domain.com. We want to create a link to a specific email message.
I found instructions to do this in a couple of ways. They are:
Link: Outlook:Inbox/~Subject (surrounded by <>)
or
Link: Outlook:'GUID' (surrounded by <>)
But they are giving me the error message: ASP.NET has detected data in the request that is potentially dangerous because it might include HTML markup or script.
Can anyone direct me on how to create a link to a specific email message on our SMTP Outlook server?
Thanks.
UPDATE
I can send the text message but the link is not displayed as a link but text.
This is my email body string that can be texted to my cell phone but the link does not go to the email defined.
I tried just creating the Outlook link like this:
string test = "<Outlook:Inbox//~New Provider>";
EmailInfo.Message = HttpUtility.HtmlEncode(test);
I also tried creating a link using href:
string test = "Email Link";
EmailInfo.Message = HttpUtility.HtmlEncode(test);
Both successfully sent a text message to my phone. But I could not click on the links. They were displayed as text like this:
MSG:Email Link
Why is the link displayed as plain text?

Notification when users are changing their informations

I want to notify the administrator when the user change his profile (for example, change his pseudo, his avatar and other custom fields attached to the user(People > Account settings > Add a new field) )
Thanks in advance !
I think the perfect module for this would be rules . There is a lot of docu on the project page.
Event:
Create a new rule on event user update
Condition
add condition (check for modifications..)
Result
trigger email

Resources