Not all cms answers use name field
This commit is contained in:
CarlNation 2023-04-25 15:25:48 -04:00
parent f18e00caed
commit 458b0d19cc
2 changed files with 8 additions and 2 deletions

View file

@ -142,7 +142,12 @@ export default {
var eventLabel = ""; var eventLabel = "";
//build comma separated list of all items in button list that we are going to display on page //build comma separated list of all items in button list that we are going to display on page
this.answers.forEach((item) => { this.answers.forEach((item) => {
eventLabel += item.Name + ","; if (item.Name){
eventLabel += item.Name + ",";
}
if (item.buttonLabel) {
eventLabel += item.buttonLabel + ",";
}
}); });
eventLabel = eventLabel.slice(0, -1); //remove the last comma eventLabel = eventLabel.slice(0, -1); //remove the last comma

View file

@ -6,7 +6,8 @@
:buttonTypeObject="servicePackageRadio" :buttonTypeObject="servicePackageRadio"
v-model="selectedPackageName" v-model="selectedPackageName"
:validationRules="validationRules" :validationRules="validationRules"
:isRequired="isRequired" /> :isRequired="isRequired"
:logDisplayedValuesEvent="true" />
</template> </template>
<script> <script>