I have a number of matrix components and I need to add default values programmatically. The data sources are a few Excel files.

Here is my plan. Would you please give me some advice?

1. Create a matrix component (i.e.: a 2x2 matrix)
2. Create a custom module admin interface, upload an Excel file
3. Write a custom module to extract data from an Excel file, and populate the matrix. Only use the leftmost 2x2 table of the Excel file, ignore all other cells.
4. Site admin would need to replace an existing Excel file shall default values of the matrix need to change

Are there specific APIs to populate the matrix component? Or shall I use field api?

Thank you.

Comments

minghui.yu created an issue. See original summary.

chetan-singhal’s picture

You don't need any external module. You can just tweet webform_matrix_component. Let me know if you need any help.
you can mail me directly- chetansinghal1988@gmail.com

fumble’s picture

I am curious to see how you do that !

chetan-singhal’s picture

Status: Active » Closed (works as designed)