Change display value with formFieldValueChanged

cancel
Showing results for 
Search instead for 
Did you mean: 
snitteur
Member II

Change display value with formFieldValueChanged

Hello,

I want to change the value of my display value with an Event in my FORM. 

I try this but he doesn't work : 

scope.findFormFieldWithId(scope.allFormFields, "Label3").id = varReadTest;
scope.findFormFieldWithId(scope.allFormFields, "Label1").value = varReadTest;

I think is the .id or .value that's not good, but i didn't find any suggestion.

Have you an idea to make this ? 

2 Replies
abhinavmishra14
Advanced

Re: Change display value with formFieldValueChanged

The information you have provided is not clear, however if i understand correctly- you are trying to change the value of a field on selection another field in Share form. If this is the case then, this may be helpful to you: http://www.tsgrp.com/2014/12/17/harnessing-the-power-of-alfresco-data-lists-for-cascading-value-assi... 

Github project: https://github.com/dgcloud/alfresco-value-assistance

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
abbask01
Senior Member

Re: Change display value with formFieldValueChanged

Yes you'll have to change the innerHTML of the Label. Label fields are just Text wrapped in HTML

Regards,
Abbas