At present if we have just one newsletter on the webform, the default behaviour is for the email to be subscribed.

It would be great if you could display a checkbox on the webform giving the user the option to subscribe or not to subscribe.

My reasoning for this is that we use a webform for a competition entry, I'd like to offer the entrant the option to subscribe to our newsletter but do not wish to force them.

Thank you and keep up the good work, very handy module indeed.

P.

Comments

pcambra’s picture

Status: Active » Postponed (maintainer needs more info)

I see what you want, and it would be very handful but now that the module supports multiple newsletter suscribe at once, I'm not really sure if this fits at UI level.
This feature would consist of adding a "Expose option to the user" checkbox under the action setting of suscribe/unsuscribe, and therefore, if the user has been already subscribed, his/her default option in the render would be populated.

But how could be the UI if multiple newsletters are present? I'm not sure if it makes sense, any UI help is much appreciated.

conny vercruysse’s picture

Title: Ability for user to choose whether to subscribe or not » unsuscribe
heine’s picture

Title: unsuscribe » Ability for user to choose whether to subscribe or not

Restoring title

johnshih’s picture

Hi pcambra,

I'm also looking for this feature as well. So the user can uncheck the check box if they do not wish to subscribe to our newsletter.

Therefore since the user did not check the check box, no suscribe/unsuscribe action need to be taken.

Will this still have a UI issue?

johnshih’s picture

I've got this to work.

First I follow the instruction by Wallack #757318: checkbox option post #20, which create a subscribe checkbox even only one newsletter is available.

However, I found out that even when checkbox is not checked, it'll still send subscribe email to user.

Therefore I follow the instruction by Syg #1116574: Checking no newsletter will subscribe to all which fixed this bug.

So by doing this I create a checkbox ability for user to choose whether to subscribe or not.

Anonymous’s picture

Is this fix still in patch form? I'm looking for this exact feature.

Subscribing.

lena ng’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

I'm using D7. Syg solution works for subscribing. However, when it comes to unsubscribing, if there is only one newsletter (and therefore doesn't make sense having a checkbox on the unsubscription form), Syg solution doesn't unsubscribe or send an email asking for the user confirmation on unsubscription .

I have adjusted the code as follow, which worked for me in this situation.
I also leave the "Allow individual selection of newsletters " remained unchecked.

if ($component['extra']['individual_newsletter_selection'])
  {
	  if (count($selected_subscriptions) > 0) {
		$news_vid = $selected_subscriptions;
	  }
	  else {
		$news_vid = array();
	  }
  }
snlnz’s picture

Hi Guys,

Just to further clarify things about this feature request.

We have competition forms also that attach a subscription to simplenews. Currently when this component is enabled, you have to manually enter an email into a text field. We would like the component to reference the existing email field webform componant or (something like this) for subscription and place a tickbox inline instead of the default text field.

Is this the common issue?

If so; Re: #7 @lena ng
Could you roll a patch out of your changes so it can be tested perhaps?

Thanks!