formbuilder-lhcforms icon indicating copy to clipboard operation
formbuilder-lhcforms copied to clipboard

issue #78 - add copy context tree node function

Open ghaliouss opened this issue 11 months ago • 2 comments

add a new function that copy the context tree node with all its childs.

image

ghaliouss avatar Mar 11 '24 15:03 ghaliouss

This looks useful, and thanks for contributing it. Do you have any ideas about what to do for fields which depend on linkIds, like enableWhen?

plynchnlm avatar Mar 13 '24 00:03 plynchnlm

This looks useful, and thanks for contributing it. Do you have any ideas about what to do for fields which depend on linkIds, like enableWhen?

Hello, the copy of a field that depend on linkId will depend on the same linkId of the original field.

only item's linkId and text properties are modified:

  • the linkId is generated automaticaly as a random 12 digits number
  • the text property is a concatination of the original text with 'Copy of ' string

ghaliouss avatar Mar 13 '24 08:03 ghaliouss