Input value won't save
Waleed Offline
Junior Member
**
Posts: 34
Joined: Feb 2013
Post: #1
Input value won't save
So I inserted the XThreads field manually. It works fine and appears in the post.

However the value you put in doesn't stay in the textbox. If there's an error, like your message isn't long enough, the XThreads field(s) gets erased. If I make a post and click edit, the XThreads value also isn't there.

Here's the code in newthread:
I've also tried value="{$Global[xthreads....blah]}"
[Image: 6qCZWsC.jpg]
11-02-2015 03:59 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: Input value won't save
The {$value} isn't set to the XThreads input.
If you want to make a custom input and want to put the input manually in your newthread template, you can change the Input Field HTML of the custom thread field setting (set the Use Custom Input HTML setting to Yes first).

For example (based on your code above):

Code:
<input type="text" class="textbox"{NAME_PROP}{MAXLEN_PROP}{WIDTH_PROP_SIZE}{TABINDEX_PROP}{REQUIRED_PROP} value="{VALUE}" placeholder="Tell us a little more about this link..." />


Then put {$tfinput['xtlddesc']} manually in your newthread template for displaying the textbox.


11-02-2015 05:22 AM
Find all posts by this user Quote this message in a reply
Waleed Offline
Junior Member
**
Posts: 34
Joined: Feb 2013
Post: #3
RE: Input value won't save
Thanks RateU. Worked great.
11-02-2015 11:54 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: Input value won't save
No problem.
BTW, I like how you treat the filter as category Smile

11-03-2015 06:59 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: