Loading...
 
Skip to main content

"Other" validation with "Dropdown with Other" field type

Status
Pending
Subject
"Other" validation with "Dropdown with Other" field type
Version
14.x
15.x
Category
  • Consistency
Feature
Trackers
Resolution status
Partially solved
Submitted by
patrick.proulx
Volunteered to solve
rjsmelo
Lastmod by
Xavier de Pedro
Rating
(1)
Related-to
Description

See example image

When you have the "Dropdown with Other" Field set as mandatory, selecting "Other" and then clicking on the other textfield triggers the validation for some reason and the error message comes up.

This should only appear when you Submit the form (if the field is empty).


Addendum by Xavi :

See it reproduced in trunk after applying the profile "Voting System" and attempting to add an item (cast a vote) using the other field.

To reproduce: login as
u: user1
p: user1
(plain registered user)

And go to

http://duqtape-11783-5792.show.tikiwiki.org/tiki-view_tracker.php?trackerId=1

where you will be able to insert new items,

You can admin the site with:
u: admin
p: 12345

Solution

Can you have a look to r58345 and see if that solves the problem (of the validation), I've not changed the validation of the case for the other option, if it's not obvious, then maybe a better solution is to change help text inline with the tracker field definition


Update:

  • Issue with validation fixed, thanks!
  • Issue with "Other" (with upper case), or not adding any "other" option (as up to Tiki12 and such) not solved, but partly addressed (hipefully) in r58742 (tell the tiki admin about it at least). Closing this bug report.
Importance
4
Easy to solve?
5
Priority
20
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
5610
Created
Tuesday 31 March, 2015 16:59:29 UTC
by patrick.proulx
LastModif
Tuesday 31 May, 2016 07:57:59 UTC


Show PHP error messages