Setting Custom By Item ID – UserPro Forums https://forum.userproplugin.com/forums/topic/setting-custom-by-item-id/feed/ Thu, 02 May 2024 16:39:10 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/setting-custom-by-item-id/#post-18000 <![CDATA[Setting Custom By Item ID]]> https://forum.userproplugin.com/forums/topic/setting-custom-by-item-id/#post-18000 Tue, 21 Jan 2014 01:03:12 +0000 Adam Geiger Hey there,

In UserPro, I have defined a custom text field FavMLBTeam. Then on my site, I have a page with logos for each of the teams in Major League Baseball (MLB). Each image has an id, like below:

<img id="RedSox" />
Is there a way the user could click a logo to set their favourite team as the ID of the logo they click?

Thanks in advance!

]]>
https://forum.userproplugin.com/forums/topic/setting-custom-by-item-id/#post-18006 <![CDATA[Reply To: Setting Custom By Item ID]]> https://forum.userproplugin.com/forums/topic/setting-custom-by-item-id/#post-18006 Tue, 21 Jan 2014 01:07:09 +0000 admin Hi Adam, the presentation is not so clear to me. Can you please clarify it a little bit more?

]]>
https://forum.userproplugin.com/forums/topic/setting-custom-by-item-id/#post-18016 <![CDATA[Reply To: Setting Custom By Item ID]]> https://forum.userproplugin.com/forums/topic/setting-custom-by-item-id/#post-18016 Tue, 21 Jan 2014 01:23:25 +0000 Adam Geiger Imagine a page with 30 different images, all with different ID tags:

<img src="...." id="Boston" />
<img src="...." id="Toronto" />
<img src="...." id="Chicago" />
<img src="...." id="Cleveland" />

etc, etc.

I want the user to be able to click one image, and the ID value of the image clicked becomes the value of the UserPro custom field “FavMLBTeam”

So if I click the Boston image, the value of “FavMLBTeam” in UserPro would be ‘Boston’

Hope that makes more sense…

]]>