The State Changers meeting revolved around working with code in the Xano platform. The discussion included details on dealing with errors and customizing their messages, handling file uploads, and understanding how to handle data aggregation. The key points discussed include:
1. Validation of 'Required' fields in Xano: There was a discussion about customizing error messages in Xano rather than sticking to the automated technical response. A solution proposed was that if a user needed higher control and friendliness in their error messages, little conditions should be preset on input fields to cater for messages when there's an error. 2. File Upload Handling: The topic was how to handle file uploads, specifically PDF certificates, using Upload Care. Two methods were suggested: (1) Handle form data and upload separately - once Upload Care finishes handling the upload, it triggers a webhook in Xano indicating the finished job and the file reference. (2) Reverse the process - the file gets uploaded, Upload Care returns an ID, then that ID gets embedded into the form and submitted along with the other form input. 3. Working with Aggregate Data: A large part of the discussion centered on handling complex aggregate data. Various strategies were discussed, particularly on how to rely on the order of the data, perform calculations on these aggregates, and manage the variability in data presence. A detailed walkthrough on building code to handle these complexities, while considering the nuances of boolean data and key-value-pair transformations, was provided by the use of filters and methods in Xano to iterate over data, update variables, and debug. 4. Webflow Gotcha: A point was raised about a potential issue with hidden required fields in Webflow not working as expected. However, the member who raised the issue clarified that as he bypasses the Webflow form handler altogether, it may not apply in his case. Every participant was eager to solve the problems at hand and the differentiation between the array (fidelity of sort) and key-value pair setup (fidelity of association) was particularly insightful. The meeting was rich with problem-solving, debugging, and expert insights into working with platforms like Xano.
(Source: Office Hours 1/3 )
Join State Change Risk-Free