How to personalize gender

3 years 3 months ago #1 by Jens - Oliver
How to personalize gender was created by Jens - Oliver
How to create gender fields? i.g.: Dear Mr. .... ; Mrs. ...? in NS pro? thank you

Please Log in or Create an account to join the conversation.

3 years 3 months ago #2 by Christopher Mavros
Replied by Christopher Mavros on topic How to personalize gender
Hello there! Thank you very much for posting on our forum.

It's really simple. You can go to the Extra Fields manager, and create a dropdown field like so:

The screenshot is from Joomla 4.

Notice that in the "Initial Values" field you can write a comma separated list of the options:
Mr.,Mrs.,Ms.

Then, when writing your Newsletter, you can simply write:
{include:field}field_id{/include}
where field_id is the ID number of the field you created.

The value is then automatically written for each subscriber the newsletter is sent to.

Let me know if you need any further assistance!
Thanks again.

Christopher Mavros
mavrosxristoforos@gmail.com
If you like our extensions, please rate us on the JED!

This message has an attachment image.
Please log in or register to see it.

Please Log in or Create an account to join the conversation.

3 years 3 months ago #3 by Jens - Oliver
Replied by Jens - Oliver on topic How to personalize gender
ok thank you,
but how to personalize? in German, if you have female, you start letter with: "sehr geehrte Frau", if male:" sehr geehrter Herr " you see the "r" at the and of the word geehrte(r)? how to add a field in the newsletter that makes the salutation male or female?

thank you

Please Log in or Create an account to join the conversation.

3 years 3 months ago #4 by Christopher Mavros
Replied by Christopher Mavros on topic How to personalize gender
Hi again!
I apologize for the late response, but I'm in the middle of a very large update of NS Pro, and I didn't remember that this feature was implemented, so I was planning on implementing it and responding after doing so. Turns out that this feature already exists, but it's undocumented.

So, here is the required information on how to use this smart text.
{if:field_1=15}This will only appear if the field with ID 1 has the value 15 for this subscriber.{/if:field_1=15}

Let's assume that your field has ID 1 and two options: "Herr" and "Frau".
Then, in your newsletter you would need to write the following smart text sequence to create the proper salutation:
{if:field_1=Herr}Sehr geehrter Herr{/if:field_1=Herr}{if:field_1=Frau}Sehr geehrte Frau{/if:field_1=Frau}

I hope this helps!

Christopher Mavros
mavrosxristoforos@gmail.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

Moderators: Christopher Mavros