1. QuickScriptz
  2. Support
  3. Wednesday, April 04 2018, 01:46 AM
I currently have a select field called "listing_visibility", and this field has two possible values: "Yes" and "No". I'm in a situation where I need to change the possible values to be "True" and "False", and then change all the old yes/no values to be true/false.

I think think all I need to do is update the values in the *_jsn_users table for the listing_visibility column, but that almost seems too easy. Is there a better way to do this and/or am I missing something?
admin Accepted Answer
Admin
Hi,
the best way to make this is to launch 2 simple SQL Queries like:
UPDATE #__jsn_users SET listing_visibility = 'True' WHERE listing_visibility='Yes'
UPDATE #__jsn_users SET listing_visibility = 'False' WHERE listing_visibility='No'


Of course you need to change also options in the select field like
True|True
False|False
  1. more than a month ago
  2. Support
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.