Welcome, Guest
Username: Password: Remember me
If you expect answers you should describe your problem and give as much information's as possible. (SQL-Structure, Template Code, Joomla Version ...) Please read this before posting: joodb.feenders.de/support.html
  • Page:
  • 1

TOPIC:

Restrict editing field to a dropdown or radio button 2 weeks 3 days ago #6019

  • gordon.springwoodhouse
  • gordon.springwoodhouse's Avatar Topic Author
  • Offline
  • Posts: 3
  • Thank you received: 0
Hi

I need to restrict editing one filed in my table to a list of approx 5 text entries. So this could be a dropdown select box or radio buttons.
Is this possible with JoomDB?

Thanks for any tips on helping me achieve this.

Please Log in or Create an account to join the conversation.

Restrict editing field to a dropdown or radio button 2 weeks 2 days ago #6023

  • Dirk
  • Dirk's Avatar
  • Offline
  • Posts: 1155
  • Karma: 21
  • Thank you received: 213

gordon.springwoodhouse wrote: Hi

I need to restrict editing one filed in my table to a list of approx 5 text entries. So this could be a dropdown select box or radio buttons.
Is this possible with JoomDB.


The easiest way is to use the ENUM or SET field type for MySql.
You can use PHPMyAdmin or any other tool to change your table.
Look at the category field at sample Database.

If you can not edit your table for any reason you must write
yourself a plugin or manually insert the select field into template.

Please Log in or Create an account to join the conversation.

Restrict editing field to a dropdown or radio button 2 weeks 1 day ago #6025

  • gordon.springwoodhouse
  • gordon.springwoodhouse's Avatar Topic Author
  • Offline
  • Posts: 3
  • Thank you received: 0
Thanks Dirk.
ENUM works perfectly.

Cheers!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: Dirkjoest