This is a discussion on Extrafields Radio Button within the Feature Requests forums, part of the Help & Support category; Hi, I'm trying to add Radio Button to Extrafields but nothing appear in viewlisting Look at my process: I add ...
|
|||||||
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Hi,
I'm trying to add Radio Button to Extrafields but nothing appear in viewlisting Look at my process:
In Listings.php function modify_listing_fields I duplicate those line and change code PHP Code:
PHP Code:
Yet the field type checked box has the same properties as the field type radio button. I can not find my mistake! |
|
#2
|
||||
|
||||
|
Any idea where I can look at?
|
|
#3
|
||||
|
||||
|
Maybe I am wrong or just to tired. But doesn't radio fields only allow for one selection just like a select list?
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
#4
|
||||
|
||||
|
@Eric
No, you're not too tired. That is the point of a radio button group, to only allow one selected option. -Mike
__________________
Mike-N-Tosh v3.1.10 Developer IndianaPC.org - A community website Sandbox v4.0, 4.0.1, 4.0.4, 4.0.8, 4.1b3 Templates for sale | 68 Classifieds Customizations Web Hosting | Web Design & Development I am not a 68C employee, just a user and try to help out |
|
#5
|
||||
|
||||
|
I would like the option radio button to allow the customer to enter their listings more quickly.
Considering that I have several drop down field. Adding ads becomes heavy. If as example I offer a choice to a client as:
I think it's much faster and efficient a radio button with only 2 or three choices than a drop down list. |
|
#6
|
||||
|
||||
|
Quote:
an html form can consist of different types of input elements. All of these elements have a "name" and in turn a value that gets passed to an underlying script. A "text field" for example has a name and a single value. a "radio button" has a name and a SINGLE VALUE. A checkbox on the other hand has a name and potentially MANY values. In php a variable that has many values is an array and as such each value of the array is accessed by a KEY. The programmatic way you get data from an array is different than the way you get data from a plain old single value variable. So what you are doing is treating a single value variable (ie radio button) and trying to process it like you would an array and that will account for, at least in part, why you are not getting the results you are looking for.
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
#7
|
||||
|
||||
|
Larry thank you for these details. So in summarize I have to treat the radio button as text?
So watch out PHP I'm coming! :-) I will try to implement your advice. |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| extrafields search form | seymourjames | v4 Questions & Support | 1 | 09-29-2008 09:58 AM |
| Javascript Validation error extrafields | gysgysco | v4 Questions & Support | 7 | 09-22-2008 05:14 AM |
| extrafields | seymourjames | v4 Questions & Support | 4 | 05-22-2008 08:43 PM |
| Local Radio Spot | louad | Site Marketing | 5 | 10-01-2007 06:37 PM |
| Extrafields to be displayed on the search results and category listings page | objelland | v3.1 Questions & Support | 1 | 01-13-2007 09:50 AM |