osTicket / roadmap

osTicket Public Roadmap
Creative Commons Attribution 4.0 International
45 stars 6 forks source link

Dynamic Elements #62

Open aydreeihn opened 1 year ago

aydreeihn commented 1 year ago

Feature Summary

We currently have components for fields that can be used to generate forms, but we should also build form elements as components to improve dynamic forms further.

Elements

Fields

Intended Outcome of the feature

Once built out, we should be able to generate forms in the backend using Form Classes, Elements, and Fields. We should be able to pass in information from the database to populate the fields and format them to properly render in React components.

Approach

In the backend, we will need classes to be made for the new elements that will format the data for the frontend. Ex: DynamicFormElements.php + child classes for each element.

It would be helpful to write an artisan command that will automatically build a skeleton form that we can use as a template to quickly build out the UI.