How to do String Operation in input form | Community
Skip to main content
Level 2
October 12, 2021
Question

How to do String Operation in input form

  • October 12, 2021
  • 1 reply
  • 795 views


Hi,

Does anybody know how to do String Operation in the input forms?
We have a requirement to parse a value from one input field and pass a value to other input field dynamically.

1) <input required="true" xpath="@EMP_ID"/> // EMP_ID = es_name; es is countryCode which need to set in other input field
.....
....
..
<container>
2) <input enum="es_marketingName" type="sysenum" xpath="@marketingName"/>
</container>

1) What all the String Operations we can use in input form (Substring) ?

2) How can we pass parsed value from #1 using an expression in second input field in any Attributes?.

If above mentioned is not possible, is there anyway we can acheive using xsl:stylesheet ? 

Any help will be much appreciated.

Thanks,
Mrudul
@2166694  @inputform

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

1 reply

Kishore_Padamata
Adobe Employee
Adobe Employee
October 21, 2021

Hello @mrudulm9146324 

To modify the context of the form,
use the 
<set value="<value>" xpath="<field>"/> tag, where <field> is the destination field, and <value> is the update expression.
use the <set expr="<value>" xpath="<field>"/> tag, where <field> is the destination field, and <value> is the update expression.
use the <set translatedExpr="<value>" xpath="<field>"/> tag, where <field> is the destination field, and <value> is the update expression having ACC Functions that we see in Expression Editor.

For your reference, sharing an example of translatedExpr


Hope this helps!