Skip to content

fix_ddl_as_radio() Function in Merciglobal Cloud ERPΒΆ

The fix_ddl_as_radio() function is part of the UI enhancement toolkit within Merciglobal Cloud ERP, designed to improve the user interaction experience by transforming traditional dropdown lists (DDL) into more intuitive selection components like radio buttons or checkboxes.


PurposeΒΆ

To convert existing dropdown list fields in a loaded form or table view into radio buttons (for single selection) or checkboxes (for multi-selection), improving usability and speeding up data entry.


FunctionalityΒΆ

  • πŸš€ Dynamic Conversion: Automatically detects dropdown fields in the current form/table.
  • πŸ”„ Adaptive UI: Converts the dropdown list into:
  • Radio buttons if the field allows only a single value.
  • Checkboxes if multi-selection is enabled.
  • ✨ Enhanced UX: Ensures a smoother, click-friendly interface especially for mobile or touch-screen users.

When to UseΒΆ

Use fix_ddl_as_radio() when: - You want to simplify selection fields for faster user interaction. - The dropdown options are limited and better suited for instant visibility. - Forms require more intuitive and space-efficient UI components.


Implementation NotesΒΆ

  • This function should be called after the form or table is fully loaded.
  • It is particularly useful in custom forms where user experience is a priority.
  • Avoid using it on dropdowns with a very large number of options, as radio buttons/checkboxes can clutter the UI.
// Example usage after loading form

    fix_ddl_as_radio();

πŸ“‹ Internal Usage Guidelines (Merci Developers)ΒΆ

  • βœ… Ensure the fields marked for conversion have clear value labels.
  • πŸ” Test the function across different device types.
  • πŸ§ͺ Verify that multi-selection compatibility is correctly toggled in field metadata.

πŸ’Ό Business Value for ClientsΒΆ

  • Improved form-filling speed and accuracy πŸ•’
  • Lower learning curve for new users πŸ“‰
  • Enhanced mobile-friendly design πŸ“±

πŸ“¦ Available InΒΆ

Module Availability
Core Form Renderer βœ… Included
Custom Form Extensions βœ… Supported
Table Row Editors βœ… Optional

For more UI enhancement utilities and ERP customization tips, refer to the Merciglobal Cloud ERP Developer Docs.


Empower your users with smarter interfaces using fix_ddl_as_radio().