how should i approach from appian side ... to add mobile number dynamically ..
For now i am having blank text field where user can enter mobile number.. next to it i want to provide add button .. so whenever it gets clicked a new text field should appear to add new mobile number with validation ...
a!localVariables( local!add , local!npi, a!sideBySideLayout( items: { a!sideBySideItem( item: a!textField( label: "Mobile Number", labelPosition: "ABOVE", value: local!npi, saveInto: local!npi, validations: if( a!isNullOrEmpty(local!npi), {}, if( not( regexmatch("^([0-9]{" & 10 & "})$", local!npi) ), "Maximum " & 10 & " digits are allowed", "" ) ) ) ), a!sideBySideItem( item: a!linkField( label: "", links: { a!dynamicLink( label: "add new ", value: true(), saveInto: local!add ) } ) ) }, ) )
Discussion posts and replies are publicly visible
Following page has the details on what you are looking for -
https://docs.appian.com/suite/help/22.4/recipe-add-multiple-text-components-dynamically.html