Populate catalog item field with the current year

hadron_collider
Tera Contributor

Hello,

 

 

I have this Catalog Client Script that is supposed to populate 'year' field on the catalog item form.

What am I doing wrong as I do not see the field populated?

 

kata90_0-1701184998291.png

 

kata90_1-1701185030569.png

 

1 ACCEPTED SOLUTION

Clara Lemos
Mega Sage
Mega Sage

Hi @hadron_collider ,

 

If your expectation is that for the year to auto populate in the portal, you need to change from UI Type: "Desktop" to UI Type: "All", so it runs in all the UIs including Portal.

If that doesn't do the trick, other thing to check is if 'year' is really the name of your variable and not only the 'question'.

 

If that helps please mark my answer as correct / helpful!
And if further help is needed please let me know

Cheers

View solution in original post

1 REPLY 1

Clara Lemos
Mega Sage
Mega Sage

Hi @hadron_collider ,

 

If your expectation is that for the year to auto populate in the portal, you need to change from UI Type: "Desktop" to UI Type: "All", so it runs in all the UIs including Portal.

If that doesn't do the trick, other thing to check is if 'year' is really the name of your variable and not only the 'question'.

 

If that helps please mark my answer as correct / helpful!
And if further help is needed please let me know

Cheers