formBuilder icon indicating copy to clipboard operation
formBuilder copied to clipboard

removeField NOT working AT ALL

Open Ale-Digitale opened this issue 4 years ago • 1 comments
trafficstars

Hi,

why removeField doesn't work at all ? Are you aware of this ?

please try it here... click on the REMOVE FIELD red button... nothing happens:

https://formbuilder.online/docs/formBuilder/actions/removeField/

Ale-Digitale avatar Aug 18 '21 21:08 Ale-Digitale

Can you post a fiddle to reproduce?

Jojoshua avatar Mar 16 '22 03:03 Jojoshua

Hi @Ale-Digitale thank you for your report.

Calling removeField without passing a fieldID was broken in https://github.com/kevinchappell/formBuilder/commit/e0c0f2ea8f204da6e11d8de938e27ca6687d5588

The const field variable is declared prior to the fallback to select the last form field and therefore can not be updated.

lucasnetau avatar Aug 23 '23 06:08 lucasnetau