Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Xthreads listbox aliases
Verilog Offline
Member
***
Posts: 50
Joined: Nov 2013
Post: #1
Xthreads listbox aliases
Hi all,
Is it possible to have aliases of values taken as input from XThreads Listbox, for example :-
The inputs are
Val 1
Val 2
Val 3

And I can access those inputs using key value pair and the user formatted map list allows to store different display values as input.

But I want to access those formatted values and the alias I am using in map list.
Is it possible ?
01-01-2018 11:18 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: Xthreads listbox aliases
I'm sorry, but I can't fully understand what you mean.

01-02-2018 12:01 AM
Find all posts by this user Quote this message in a reply
Verilog Offline
Member
***
Posts: 50
Joined: Nov 2013
Post: #3
RE: Xthreads listbox aliases
(01-02-2018 12:01 AM)RateU Wrote:  I'm sorry, but I can't fully understand what you mean.
Hi RateU,
I will take the reference of this :-
http://mybbhacks.zingaburga.com/showthread.php?tid=1594

In the value list, we have both 1 and List #1

Code:
1{|}List #1
2{|}List #2
3{|}List #3

I can access the value {$GLOBALS['threadfields']['key']} which will show List #1.
If I want to show both List #1 and 1, what variable can be used for showing unformatted value i.e. 1 in this case.

01-02-2018 12:52 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #4
RE: Xthreads listbox aliases
(01-02-2018 12:52 AM)Verilog Wrote:  what variable can be used for showing unformatted value i.e. 1 in this case.

You can grab the raw value by using {$GLOBALS['threadfields_x']['key']['raw_value']}
You can sanitize it using Template Conditional if needed.

01-02-2018 01:36 AM
Find all posts by this user Quote this message in a reply
Verilog Offline
Member
***
Posts: 50
Joined: Nov 2013
Post: #5
RE: Xthreads listbox aliases
Awesome Smile
This works fine, thanks RateU
01-02-2018 04:10 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #6
RE: Xthreads listbox aliases
You're welcome.

01-02-2018 09:56 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: