{"id":2987,"date":"2023-07-23T17:45:57","date_gmt":"2023-07-23T20:45:57","guid":{"rendered":"https:\/\/felipeelia.com.br\/?p=2987"},"modified":"2023-07-25T12:55:16","modified_gmt":"2023-07-25T15:55:16","slug":"contact-form-7-repeatable-fields-2-0-0","status":"publish","type":"post","link":"https:\/\/felipeelia.dev\/contact-form-7-repeatable-fields-2-0-0\/","title":{"rendered":"Contact Form 7 \u2013 Repeatable Fields 2.0.0"},"content":{"rendered":"\n
Back in 2018, I created a small plugin to create repeatable fields in Contact Form 7<\/a>. I learned a lot of different things with it and it was one of the code samples I sent during the 10up recruiting process<\/a>. I even remember staying up all night to make it more presentable!<\/p>\n\n\n\n I was hired by 10up<\/a>, the pandemic hit and I never went back to the plugin. A few people reached out asking, but it just wasn’t on my radar anymore. Recently, an update to Contact Form 7 broke the repeated fields validation and I decided it was time to go back.<\/p>\n\n\n\n Even if I tried, I can’t explain how much I’ve learned over the last few years, mostly leading ElasticPress<\/a> development. As free time is rare, I decided to implement the most basic things first and release a new version of my plugin.<\/p>\n\n\n\n In addition to fixing that validation error, this version changes a few other things. For me, the main ones are:<\/p>\n\n\n\n In the near future, I also intend to implement end-to-end<\/em> tests, probably using Cypress. For this, I’ve added support for wp-env<\/a> already.<\/p>\n\n\n\n The version wasn’t even released and I already have a regret: as I did a lot of things in a hurry and alone, I ended up committing<\/em> some things mixed up and directly on the trunk<\/em> branch. Then I tried to be more disciplined and open Pull Requests, but I didn’t have the patience to document everything properly. As the basics are already done, from now on it will be easier to do it right \ud83d\ude09<\/p>\n\n\n\n\n