Expand my Community achievements bar.

How to populate calculated fields into input form field

Avatar

Level 7

Hello All,

I have a calculated field, whose value is based on other fields selected in the form before saving.

Example:

<attribute name="customerType" label="Customer Type" type="string"/>

<attribute name="customerCode" label="Customer Code" expr="@customerType+'CUS'+CounterValue('counter')" type="string"/>

Though value is perfectly getting saved in DB, I am not able to see the same in the form against respective text field.

Kindly please help on how can I achieve this

Thanks,

SSB

2 Replies

Avatar

Community Advisor

after saving form, when you refreshing it still value not coming over form for the text field? 

Avatar

Level 7

This has been solved, added custom fields in xpathsToLoad in the Input Form.