Update adaptive form jcr:title dynamically

Avatar

Avatar
Affirm 1
Level 1
grahamc82268888
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

1 solution
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 1
grahamc82268888
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

1 solution
Top badges earned
Affirm 1
View profile
grahamc82268888
Level 1

24-08-2017

Hi

I have an adaptive form whereby we would like to update the field titles (jcr:title) dynamically (as in at initialise time). I have attached a simple piece of javascript to the initialisation expression

this.setAttribute("Some other title for this field", "jcr:title")

This works brilliantly for a GuideTextBox and when the form is rendered it shows the field title change but it doesn't work for a GuideRadioButton.

Does anyone have any thoughts on why this would be or maybe a better way on achieving this kind of functionality?

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

24-08-2017

Is this form not a node in the AEM JCR? Can you not update it with JCR API.

Avatar

Avatar
Affirm 1
Level 1
grahamc82268888
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

1 solution
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 1
grahamc82268888
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

1 solution
Top badges earned
Affirm 1
View profile
grahamc82268888
Level 1

24-08-2017

The form HTML is being accessed essentially as:-

   http://localhost:4503/content/dam/formsanddocuments/TestForm?wcmmode=disabled&alternativeContentSwit...

with the http parameter `alternativeContentSwitch` being used within the init expression to drive one of two different contents for labels