PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds How do I...? (http://www.photopost.com/forum/classifieds-how-do-i/)
-   -   Require "Condition" of item (http://www.photopost.com/forum/classifieds-how-do-i/148852-require-condition-item.html)

Jman423 October 16th, 2012 03:22 PM

Require "Condition" of item
 
How would l force users to select the condition of an item? People tend to ignore the feature which can be a bit harmful to the listing, so I would like to have it so that the first option is something like "Select One" and is not an acceptable choice, prompting the user to receive an error if they try to submit it that way.

Thank you

Chuck S October 16th, 2012 04:11 PM

I am not too sure what your talking about there. The condition is not a variable that is EVER EMPTY. In fact by default it is excellent and the user can change it when uploading.

Jman423 October 16th, 2012 05:17 PM

Understood, but in order to "require" the user to appropriately select their condition (as opposed to leaving it on the first option), I was looking for a way to force the user to select the item's true condition. If they don't an error could be displayed much the same as that snippet of code you posted to make photos required during the "ad placement" process.

Chuck S October 16th, 2012 05:59 PM

Well how would you expect to do that as in determine a condition and what the right answer is. That is what I was bringing up as the actual condition variable is never empty.

There are plenty of variables on the upload page that are required like title description or extra fields zipcode etc. However in order to require a field what you are checking against is if the value is empty which it is by default.

Do you see what I am bringing up here. To require a variable to be required it must be empty to bring up a box to say fill in the variable. ;)

Chuck S October 17th, 2012 01:08 PM

If you wanted to actually require the condition you could edit the actual uploadproduct template lilke so

find this

Code:

Content visible to verified customers only.
add below

Code:

Content visible to verified customers only.
The find this

Code:

Content visible to verified customers only.
replace it with this

Code:

Content visible to verified customers only.
That should allow you to require a condition although I see no real reason why one would want to null it out to begin with but glad to help you learn. ;)


All times are GMT -5. The time now is 07:38 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97