Hi,
I'm trying to dynamically display a!datefield based on multidropdown values.
If user has selected 2 values from the multidrpdown component, then I should display 2 datefields for user to select dates. I'm trying to do this with a!foreach , however I'm not able to store values.
Can you please help me with this?
Sample code:
{ a!multipleDropdownField( label: "Titles Held", labelPosition: "JUSTIFIED", placeholder: "--- Select a Value ---", choiceLabels: local!titleNames, choiceValues: local!titleIds, value: ri!selectedTitleIds, saveInto: ri!selectedTitleIds ), if( a!isNullOrEmpty(ri!selectedTitleIds), {}, a!forEach( items: ri!selectedTitleIds, expression: a!dateField( label: rule!BM_GetTitle( ids: fv!item, fields: 'recordType!{bb833822-bd6e-4091-a565-b8cb02a62311}BM Title.fields.{c8120c27-34e0-46fd-87e7-ccf57230dabd}name', pagingInfo: local!pagingInfo )['recordType!{bb833822-bd6e-4091-a565-b8cb02a62311}BM Title.fields.{c8120c27-34e0-46fd-87e7-ccf57230dabd}name'] & " Awarded On", value:local!awardedOn, saveInto:{ local!awardedOn, a!save(ri!awardedOn[fv!index],local!awardedOn) } ) ), ) }
Note: You can ignore the record which I have referred in label. That is to display corresponding title name based on title Ids
Please do let me know if you require more details from me.
Thanks
Discussion posts and replies are publicly visible
Please ignore this question. I'm able to store it now. Thanks