Hi Folks,
Is there a way to show the value in a dropdown in italics?
Regards,
Ghanashyam
Discussion posts and replies are publicly visible
Hi Ghanashyam
Here is the solution
a!localVariables( local!commonvalue: concat( a!forEach( items: { 10090/*(*/ , 119914/*C*/ , 119952/*o*/ , 119950/*m*/ , 119950/*m*/ , 119952/*o*/ , 119951/*n*/ , 119949/*l*/ , 119962/*y*/ , 32/* */ , 119932/*U*/ , 119956/*s*/ , 119942/*e*/ , 119941/*d*/ , 32/* */ , 119920/*I*/ , 119940/*c*/ , 119952/*o*/ , 119951/*n*/ , 10091/*)*/ }, expression: char(fv!item) ) ), local!choicelabel: { "Series 23- GP (Principal)", "Series 26-IP (Principal)", concat("Series 3 - NFA ", local!commonvalue) }, local!value, a!dropdownField( label: "Field", choiceLabels: local!choicelabel, choiceValues: local!choicelabel, placeholder: "--Select--", value: local!value, saveInto: local!value ))
You can concat local!commonvalue to any of you choice label and make a common rule so that its easy to be used any time
Using unicode characters to simulate font styling is a neat idea! Thanks a lot for sharing.
BTW, there is no need to beat such a simple problem using a foreach.
a!localVariables( local!commonvalue: joinarray( char( { 10090, 119914, 119952, 119950, 119950, 119952, 119951, 119949, 119962, 32, 119932, 119956, 119942, 119941, 32, 119920, 119940, 119952, 119951, 10091 } ), "" ), local!choicelabel: { "Series 23- GP (Principal)", "Series 26-IP (Principal)", concat("Series 3 - NFA ", local!commonvalue) }, local!value, a!dropdownField( label: "Field", choiceLabels: local!choicelabel, choiceValues: local!choicelabel, placeholder: "--Select--", value: local!value, saveInto: local!value ) )