![]() |
|
Thread Tools |
#1
|
|||
|
|||
Conditional Profile Field Status and Notices
Hey Guys,
I have got a Custom Profile Field and it acts like a status. Similar to Online and Offline, but Active or Non-Active. What I'd like to do is when a User Selects the "Non-Active" option, a Notice appears saying that the status is "Non-Active" please change to Active. What coding do I need to do this? Thanks No members have liked this post.
|
#2
|
||||
|
||||
depends what template you want to put it in. But I would imagine something like this
OPTIONS FOR DROPDOWN Non-Active [has an id of 0] Active [has an id of 1]
Where # is your field id, and 0 is the id of the non-active selection.
__________________
If I have helped you, the least you could do is click the ❤ button to show your appreciation. ![]() TheSecond.org - Because it is our right! No members have liked this post.
|
#3
|
|||
|
|||
Okay, the coding is right, but changing the "0" and "1" isn't actually changing anything. I'm working on 4.2.0 PL3 if that helps
No members have liked this post.
|
#4
|
||||||||
|
||||||||
i see no custom dropdown profile field on your site.
--------------- Added 07 Feb 2013 at 17:02 --------------- try == '1' instead of == 1 --------------- Added 07 Feb 2013 at 17:15 ---------------
Try that. --------------- Added 07 Feb 2013 at 17:18 --------------- If that doesnt work then try "Second Option Selected"
dont remember exactly but it could be either [field11] or ['field11'] try both. ![]()
__________________
If I have helped you, the least you could do is click the ❤ button to show your appreciation. ![]() TheSecond.org - Because it is our right! No members have liked this post.
Last edited by LifesGreatestGift; 07 Feb 2013 at 17:20. |
#5
|
|||
|
|||
It's done via radio buttons. And neither of those codes work. :/
No members have liked this post.
|
#6
|
||||
|
||||
What template are you posting these in? header/navbar?
__________________
If I have helped you, the least you could do is click the ❤ button to show your appreciation. ![]() TheSecond.org - Because it is our right! No members have liked this post.
|
#7
|
|||
|
|||
I'm doing it via a notice
No members have liked this post.
|
#8
|
||||
|
||||
May be a bug as
should work.
__________________
If I have helped you, the least you could do is click the ❤ button to show your appreciation. ![]() TheSecond.org - Because it is our right! No members have liked this post.
|
#10
|
||||
|
||||
try using a dropdown single-selection and these conditionals. may just be with radio button.
--------------- Added 07 Feb 2013 at 17:48 --------------- What was the code that worked? I am curious.
__________________
If I have helped you, the least you could do is click the ❤ button to show your appreciation. ![]() TheSecond.org - Because it is our right! No members have liked this post.
|
#11
|
||||
|
||||
That one! Thanks for your help No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 20:37.