There any way to append a dynamic link to a text field? For example, in a Text field with read only mode that contains a lot of characters. I want to truncate the characters and add a link after it that says "Expand" or "Read More", If they click on it, the user will sees all the text.
Discussion posts and replies are publicly visible
Hi rishukumarg1965 ,
Please go through this pattern link here. Its already there in pattern
Hii rishukumarg1965,As of my knowledge, you can not append a dynamic link to a text field but you can achieve it by using the richTextDisplay Field, hope this will help youThankyou
a!localVariables( local!TextlengthToshow:10, local!a:"jsvsbvjsbvjsbvl visjdvidsbvlsad dsfdf n dvkmsdvsdkjv dsv dsvdsvn", local!show:len(local!a)>local!TextlengthToshow, { a!richTextDisplayField( value: { a!richTextItem( text: if( local!show, left(local!a,local!TextlengthToshow), local!a ) ), a!richTextItem( text: if( local!show, " More", " Less" ), link: a!dynamicLink( value: not(local!show), saveInto: local!show ) ) } ) } )
Above pattern are related to a!gridfield but i want same scenario with the text field with read only mode.
I try above code but it's not work
You cannot add a dynamic link to text field. Thats why use rich text display field and specify label and label position. it will act as text field in readonly mode.
can you please explain so that I can correct it
Thankyou it's working