Please tell me how to set up dynamiclink when switching between interfaces.
Discussion posts and replies are publicly visible
Hi sansanw5661 , Below code might be helpful
a!localVariables( local!test:true, { a!richTextDisplayField( value: { a!richTextItem( text: "change text", link: a!dynamicLink( value: not(local!test), saveInto: local!test ), linkStyle: "STANDALONE" ) } ), a!richTextDisplayField( value: "true", showWhen: local!test ), a!richTextDisplayField( value: "false", showWhen: not(local!test) ) } )
I am not sure about your use case but try using the following snippet.
Here I have taken choose() and declared identifying interfaces via numbers.
Depending on your use you can either use this or use if else.
a!localVariables( local!showInterface:1, a!sectionLayout( label: "INTERFACE 1", contents: { a!sideBySideLayout( items: { a!sideBySideItem( item: a!richTextDisplayField( value: a!richTextItem( text: "Redirect to interface 1", link: a!dynamicLink(value: 1, saveInto: local!showInterface) ) ) ), a!sideBySideItem( item: a!richTextDisplayField( value: a!richTextItem( text: "Redirect to interface 2", link: a!dynamicLink(value: 2, saveInto: local!showInterface) ) ) ) } ), choose( local!showInterface, rule!EMS_TEST_INTERFACE_1(), rule!EMS_TEST_INTERFACE_2() ) } ) )
Thank you everyone for your advice.