bahamagician
Set State of Select Field After Dynamically Populating Via Dependent Field
So it seems that if I do the following, the service_call_id state gets updated but the select field doesn't reflect the state change on the front end. It still says "Select an option". Is there a way to trigger the form field to update to reflect the state of that field?
20 replies
How to use fillForm() with a repeater?
Is there a way in the test maybe to either replace the existing empty fields in the repeater array altogether or at least get the UUID that's generated for them so I can assign values to those form fields?
29 replies
How to use fillForm() with a repeater?
If for example I set "->defaultItems(0)" on the repeater, then it solves my testing woes. However, I'd prefer that the UI actually does show an initial empty field, so I'd rather not have to do that.
29 replies
How to use fillForm() with a repeater?
So I figured out what's causing the problem but I don't know how to get around it. By default the repeater input type has a single empty item. When I use the form fill method, it's adding to that repeater array instead of replacing it completely. However, because those form fields are required, it's throwing an form error for the empty fields that are initially there.
29 replies