Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User profile variables - Custom profile field not working #38

Closed
jeontwikkeling opened this issue Dec 21, 2022 · 5 comments
Closed

User profile variables - Custom profile field not working #38

jeontwikkeling opened this issue Dec 21, 2022 · 5 comments

Comments

@jeontwikkeling
Copy link

Hello Justin,

I tried using USER PROFILE VARIABLES - Custom profile field

But it does not seem to be working. Maybe I am doing something wrong?

The example states: User's ice cream preference (custom profile field): @@user:icecreampref@@

When I use a similar statement using the default profile fields, it works like a charm. When using custom profile fields it displays the statement itself e.g. "@@user:icecreampref@@".

I tried adding "profile_field_" and taking out capital letters but that does not have any effect.

Is this a a bug or am I doing something wrong? :-)

Thanks a lot in advance.
Joris

@jeontwikkeling jeontwikkeling changed the title USER PROFILE VARIABLES - Custom profile field not working User profile variables - Custom profile field not working Dec 21, 2022
@justinhunt
Copy link
Owner

I just tested to make sure, and it is working. It will work as you are doing:
@@user:icecreampref@@ if the custom profile field key is icecreampref

I think the issue might be that if the field is empty, it just resolves as the variable name, ie: @@user:icecreampref@@
Which is a bit naff isn't it. I just fixed that and will post it from now

Anyway check that the profile field key is correct AND the logged in user has something in that profile field, and it should work.

@justinhunt
Copy link
Owner

sorry I closed that a bit hasty. Please let me know if its working and then I will close it

@justinhunt justinhunt reopened this Dec 22, 2022
@jeontwikkeling
Copy link
Author

Thank you for your trouble. I got it working now.. don't know what I changed to get it working though. If I find out I'll let you know. The profilefield was not empty, so that was not the problem.

I do need to use capitals for "USER" though.

Thanks again!

@jeontwikkeling
Copy link
Author

After fooling around a little bit more on a identical environment with the original script if found that the profile field key has to be in only lowercase.

I thought I tested this yesterday, but discovered I changed the wrong value :-)

@justinhunt
Copy link
Owner

Ah nice one. Yes we do some lowercasing earlier in the processing and that might be breaking it. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants