Using multiple field widgets for the same field in Drupal
source link: https://www.codesd.com/item/using-multiple-field-widgets-for-the-same-field-in-drupal.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Using multiple field widgets for the same field in Drupal
I would like to be able to use multiple form field widgets for the same field and to be able to switch it based on session data from the user. But I am not really sure how to accomplish this. This is for Drupal 6. Any ideas on how to accomplish this?
You might be able to accomplish this with one of the field access modules but to do it properly you'd probably need to create a custom widget. Your widgets can return existing widgets by calling their handles, so your widget would more or less be a wrapper that returns the correct widget call.
this tutorial gives a pretty good overview of widget creation in Drupal 6.
Related Articles
Using multiple ssh keys for the same host, without using an alias
Using multiple language views for the same controller in CodeIgniter
Multiple click events for the same item?
Multiple signal handlers for the same signal, for example SIGALRM
CakePHP - Multiple paged tables for the same model, on the same page
Can you have multiple enum values for the same integer?
How to add multiple ad files for the same username in gitolite?
Define multiple IE10 cookies for the same domain?
ASP.NET - multiple worker threads for the same client
Multiple TFS server for the same project
JSF2 - Stop multiple validation errors for the same field (ie there can only be one)
Have multiple calls waiting for the same promise in angular
Use of 2 ways for the same action
How can I use multiple GLSurfaceView components in the same layout?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK