da1Bear Posted April 25, 2007 Share Posted April 25, 2007 I'd love to see an option for the drop down list in the Custom Profile fields of first item in list is not valid. Link to comment Share on other sites More sharing options...
Rοb Posted April 25, 2007 Share Posted April 25, 2007 I'd love to see an option for the drop down list in the Custom Profile fields of first item in list is not valid.Hi dabear!Not exactly sure what you mean, could you be more specific and/or give an example?Thanks :) Link to comment Share on other sites More sharing options...
Mat Barrie Posted April 25, 2007 Share Posted April 25, 2007 Oasiz, he means that the first item in the dropdown list for the custom profile field is considered invalid - thereby forcing the registering member to actually drop down the list and select an option - preventing them just ignoring it and not filling it in. Unlike Windows listboxes, there is always a default option in HTML dropdowns. He just wants that default to be considered invalid. Link to comment Share on other sites More sharing options...
Rοb Posted April 25, 2007 Share Posted April 25, 2007 Ah i see, cheers! :D Link to comment Share on other sites More sharing options...
TestingSomething Posted April 25, 2007 Share Posted April 25, 2007 Yeah definitely needs to be done. I had someone make me an in-depth reviews system and that was an issue with that. For doing different ratings of items, it needed to have a default that was not a rating. Otherwise everything could be ignored and then the ratings would not even be really what the reviewer wanted. Link to comment Share on other sites More sharing options...
Antony Posted April 25, 2007 Share Posted April 25, 2007 Personally I think custom fields need a bit of an overhaul and certianly adding validation functionality such as this would be helpful to many users. That said I think this is very specific and we could have a much broader range of functionality included if validation options were to be built in. :) Link to comment Share on other sites More sharing options...
stobbo Posted April 26, 2007 Share Posted April 26, 2007 Totally agree, I have always wondered why it has not been added. Link to comment Share on other sites More sharing options...
Alex Posted April 26, 2007 Share Posted April 26, 2007 Basher, your post about the reviews system, that would have been simple, I have done a 'invalid' position in alot of my mods. For example you could have the html as.<option value='0'>-----</option> And on the php side if ( $this->ipsclass->input['whatever'] == 0 ) { $this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'incorrect_use' ) ); }Thats a basic example, theres parts of that everywhere on the admin side, one being the classic error 'Out of all the options in the list, you had to choose the one with dashed lines didnt you? Now go back and behave yourself!'But, yes it should be implemented :) Link to comment Share on other sites More sharing options...
C_ind Posted April 26, 2007 Share Posted April 26, 2007 I'd love to see an option for the drop down list in the Custom Profile fields of first item in list is not valid.But can't you do this already? An example:ACP > Management > Custom Profile Fields > Add New FieldField Title: What is your preferred programming language?Description: ...be honestField Type: Drop-down boxMaximum Input: 50Expected Input Format: aOption Content (for drop downs):@=please select...p=PHPj=javascriptc=Cd=delphiInclude on registration page?: YesField MUST be completed and not left empty?: YesIf you now go to the registration page, fill in the other fields but leave this custom profile field alone, this message will appear above the field when you try to submit the form:The data you entered in this field is in an invalid formatIf you then select one of the other options, then you can submit the form successfully. Isn't that the behaviour you want to see?If you want to display the data directly, then it will be inconvenient to just store one letter in this case I'd admit, but if it's just for the admin's eyes or the input is used by a mod or whatever later, then it might be good enough. Link to comment Share on other sites More sharing options...
Digi Posted April 26, 2007 Share Posted April 26, 2007 Excellent suggestion C_Ind ;)If you want to display the data directly, then it will be inconvenient to just store one letter in this case I'd admit, but if it's just for the admin's eyes or the input is used by a mod or whatever later, then it might be good enough.Expected format is a pain. It should be the thing expanded to allow a regex check against the expected input so that any number of alpha characters (or whatever else you want to allow) would be considered valid. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.