UI Builder, strange behavior of duplicated page variants and scripts

Sergey Sidorin
Tera Guru

Colleagues, I found strange behavior of UI Builder when a page variant is cloned. It seems, that even though it clones all components, variables, scripts, the cloned variant still uses old, original script.

How to reproduce:

1. Create a page (original variant) with simple script, that types on the screen "Original variant".

2. Clone(duplicate) this variant.

3. Change the script in the cloned variant to type "Cloned variant".

4. Test both of variants: both of them type the same: "Original variant".

 

create original variant, create a variable displayed as stylized text.

2022-12-23 15_39_32-Home default _ NOW UI Builder.png

 

create a script that is started with the click and changes the variable

2022-12-23 15_39_58-Home default _ NOW UI Builder.png

 

create a clone and modify the script and the heading

2022-12-23 15_41_32-Home default Copy _ NOW UI Builder.png

 

While original variant works as expected...

2022-12-23 15_42_15-variants and scripts defect _ ServiceNow.png

... the cloned variant still calls the script from original one!

2022-12-23 15_42_27-variants and scripts defect _ ServiceNow.png

Build tag: glide-tokyo-07-08-2022__patch1-09-01-2022

 

The only question: is it OK?

0 REPLIES 0