WAIT: Bug When Copying Form Element to Reuse in an Instance Where There Are Less Fields Than the Original Instance

Browser: Chrome 150.0.7871.187
OS: macOS
URL: N/A
Video: N/A

In a previous topic I had created regarding the Form element, I had created a form that had 9 fields. For each of these fields, I used a custom value for the width property in the field settings.

I copied this Form element and pasted it to use on another page. This instance of the form has only 6 fields.

The problem I’m having now is that the submit button is almost being treated as a 7th field since it uses the same form-group class as the fields, and the custom width values from the original Form element instance seem to be retained and associated with the same indices of the original form instance. This is proven by the styling to div.from-group.submit-button-wrapper as seen here:

So basically, whatever the custom width value was for the field at index 7 in the original form instance is being applied to my submit button now since the submit button is at index 7 for form element children with the class form-group. In this case, that custom width value is 50%.

The width value I am trying to achieve for the submit button is 100%, but it is being overridden by the retained custom width value for the field at index 7 in the original form instance.

I have already tried regenerating CSS files and this did not fix the issue.

I think that this is a bug as I wouldn’t expect the custom width values associated with fields and their respective indices to be retained when those fields are deleted after being copied.

Hey @brandonbowman,

sadly, I can’t replicate the issue locally. Can you copy-paste the elements and record a short video how to replicate the issue.

Thank you,
Matej

Perhaps I should have added this, as this may have something to do with it:

All of the styling for the original Form element was applied to a class. Not only did I copy the original Form element and paste it on another page, but I then also copied the styling from that class and pasted it to a new class.

I’m not sure if that would help replicate the issue. But with that being said, I will try to record a video and post it here.

Hey @brandonbowman,

yeah, that would be nice, because I can’t replicate the problem with class either. If even that will not help, then I will ask for login credentials.

Thanks,
Matej