It's all about the answers!

Ask a question

Attribute customization: set default literal in enumeration with javascript

Milan Krivic (9808163136) | asked Mar 26 '13, 10:13 a.m.

I know that I can set default value for enumeration on enumeration attribute in PA configuration.
Is there possible to set default value through the javascript?
Example: I have an enumeration list from 1 to 12 (typical numbers) in drop-down meun, and based on the current month, I want to set default value in my enumeration list to value like it is a current month...


One answer

permanent link
sam detweiler (12.5k6185201) | answered Mar 26 '13, 2:45 p.m.
edited Mar 26 '13, 2:48 p.m.
you should be able to use a scripted Default Value provider to select the value in the enum list

see this other post

Your answer

Register or to post your answer.