How do I exclude form unsubscribes in a dynamic list - hubspot

We collect the registrations of events via a form in a dynamic list. How can we remove people who have unsubscribed via email or telephone from this list, since you cannot delete form submissions? Help? ‌‌

In an active list, you can exclude unsubscribed contacts by adding a filter for "Unsubscribed from all email is not equal to True":
Screenshot:

Related

Restrict partner to display in odoo

I want to add record level restriction in odoo. I want display just that partners to current login user which state_id equals to state_id of current login user.
For that you have to add Record Rule from Settings/Technical/Security/Record Rules menu. In that you have to set object as Partner (res.partner). Need to set Rule Definition(Domain Filter) like below code and just save it.
[('state_id','=',user.partner_id.state_id.id)]

Apex - passing a variable from one page to another

I have a form on one page which prompts a user to enter their email address. When they click "next" I want Apex to redirect the user to a different page which shows them a report which selects the records from the users table where the email address matches the one that they entered.
E.g.
SELECT *
FROM USERS
WHERE EMAIL_ADDRESS = (the email address that they entered on the previous page);
Can someone please explain the easiest way to do this?
I have only in the last 5 seconds heard about 'Apex' Lol ... But I think I found what you need to do.
You need to define a 'Branch' which will allow you to POST to whichever page you need to.
Here's some documentation on 'Branches': http://docs.oracle.com/cd/B32472_01/doc/appdev.300/b32469/pdf_report.htm#BABICIJG
Also this snipet may help:
It's [The 'branch'] in the middle (page processing section) of the
development page at the bottom. The branch will be executed whenever a
post submission occurs but you can put conditions on the branch.
Which I found at: http://dbaforums.org/oracle/index.php?showtopic=8139
The "Next" button should not redirect but should submit. The value of the page item has to be pushed to the session state for it to be available in the (apex) session. On submit you can then define a branch which will take you to the page with your report. Your report can then reference the page item by using bind variable notation in the region source:
SELECT * FROM USERS WHERE EMAIL_ADDRESS = :Px_EMAIL_ADDRESS

Woocommerce select email address destination only for new order notification(admin) through form checkout it's possible?

Scenery: 1 store and 2 locations. I already have select field form (checkout) where the customer select which store is closest to your location, eg: city A or city B.
Now I need that the new order notification (admin) sent ONLY to e-mail the city shop chosen in form.
Seems to me that all this operations occurs near: class-wc-order, class-wc-checkout.php
But I belive that exist that do it only using filters
Any ideas?
Thanks advance.
$_SESSION Vars on WooCommerce work's fine.
Well not the fine way, but also not worst too!
Create a jquery ($.ajax) function to call one php script external file and register the session variable ($_SESSION).
In my case this php is in (eg: public_html/loadvar.php), this file receive $_POST variables through ajax (in my case: when the user select your office location prefered, this value eg: emailA or emailB according office selected (onChange event) )
I used this session variable to store the alternative email addresses. (not admin_email default)
In (class-wc-checkout.php) , retrieve these values (session variable) eg: email1 or email2... previously selected on form checkout, and overriding the "get_option( 'admin_email' )" by the $_SESSION value
Now, users can choice the office that prefer, and only the selected office will receive the quote request
Note: I only can use this session vars on woocommerce configuring wp_unregister_GLOBALS() on wp-includes/load.php or disable it commenting this function.
This worked (not is state-of-art code) maybe dirty code but can't need deep coding, obviously not "strict patch" this will not survive an update
Thats all folks

List Of Items Appearing In Another List

I have a list of Strings. I want to do a query like the following:
SentEmails is another list that comes from the database.
SentEmails.Where(Function(x)x.EmailSentTo = [any of the items in my original email address list]
But I'm not sure how to achieve this. Bascially I want to remove any email addresses from SentEmails that aren't in my original list.
Use Contains extension method:
SentEmails.Where(Function(x) OriginalList.Contains(x.EmailSentTo))

How to implement contacts/email address picker like in Apple's mail application?

when sending a mail on the iPhone/iPad you start typing the name of the recipient and list of proposals shows up. Either pick one from those, or continue typing an email address. Adding a new address turns the first one entered into a blue button like thing.
I would like to use this to allow users to select a couple of email addresses. Does anybody know if it is a standard component?
René
I dont really know if it is a standar UI control but i guess you could figure out something with the help of this video, this one uses the UI Person picker to display the persons name
http://www.alexyork.net/blog/post/Selecting-a-contact-from-the-Address-Book-with-MonoTouch.aspx
and with some modifications you could search on contact list and display a modal view with suggestions of the emails in the list
with this example you can get all the emails in the contact list
ABAddressBook ab = new ABAddressBook();
ABMutableMultiValue<string> emails = new ABMutableStringMultiValue();
foreach (ABPerson person in ab) {
ABMultiValue<string> personemails = person.GetEmails();
foreach (ABMultiValueEntry<string> item in personemails) {
emails.Add(item.Value, item.Label);
}
}
With this code you will get all the emails on the contact list in the variable "emails" now you just need to access the "emails" variable and look for the email the user is typing.
Hope this helps.
Alex