Dynamic Text Box for Multi-Select Combo Box
under review
F
Fancy Cattle
Currently, the built-in functionality of the dynamic text box only works for single-select Combo Boxes. There is a workaround for this but you have to use R CODE for example:
Calculate the number of selections in the Combo Box
numberofselections <- length(Combo.box.4)
Store what has been selected in the Combo Box
selectiontext = Combo.box.4
if/else to print the correct text
if (numberofselections == 1) {
paste0("Verbatim reasons for recommendation rating - ",text\[1])
} else if (numberofselections == 2) {
paste0("Verbatim reasons for recommendation rating - ",text\[1]," , and ",text\[2])
} else if (numberofselections == 3) {
paste0("Verbatim reasons for recommendation rating - ",text\[1]," , ",text\[2]," , and ",text\[3])
}
In this example, the customer had possible categories the user could select in a Combo Box. With the current functionality this only works for single select. When you change the Combo Box to multi-select there is an error.
J
Jamie Morris
under review