Is there a way to default the value in a text field without using JS | Community
Skip to main content
Level 4
November 18, 2020
Solved

Is there a way to default the value in a text field without using JS

  • November 18, 2020
  • 2 replies
  • 1094 views

I have a use case where i want to default the value of the title and the name in createlivecopywizard i.e /mnt/overlay/wcm/core/content/sites/createlivecopywizard.html/content/x/en/xx?source=%2Fcontent%2Fx%2Fen%2Fxx%2Fabc

I was trying to use the value option .. But i want to dynamically set it every time based on the source in the uri. Is there a simpler way to do this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Bhuwan_B

Use value property to add default value in text fields.

https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/form/textfield/index.html

 

 To dynamically set it every time based on the source in the uri, you have to write custom js.

2 replies

Bhuwan_B
Community Advisor
Bhuwan_BCommunity AdvisorAccepted solution
Community Advisor
November 18, 2020

Use value property to add default value in text fields.

https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/form/textfield/index.html

 

 To dynamically set it every time based on the source in the uri, you have to write custom js.

AEMnewbieAuthor
Level 4
November 19, 2020
@bhuwan_b Thanks!!
Ankur_Khare
Community Advisor
Community Advisor
November 19, 2020

No its not possible without custom js