I posted this question before, but I haven't gotten any feedback since. Here is what I have.
- I have a form that uses combo boxes with this I have corresponding labels
- The labels populate when a value is selected int he combo box
- For some labels I was able to use comboboxname.Selected.Value and for others I needed to use comboboxname.Selected.columnname
- The labels use conditional formatting. They are pink if the datacard is required and there is no value selected in the combobox. Code looks like this:
If(IsBlank(CB_Industry.Selected.'Industry Name') && DC_Industry.Required = true, RGBA(253, 222, 207, 1), RGBA(255,255,255,1))​
This all works great when using the form to create a new record. Where I run into issues is when I go copy a record. Here is what this process looks like:
- User clicks on a record in a gallery and then clicks a copy button
- The button adds the record to a global variable and redirects them back to the original form where the forms is populated with the data in the global variable.
- Code on the copy button looks like this"
Set(
glbFormData,
GAL_Campaigns.Selected
);
Set(
varCopy,
true
);
EditForm(FRM_CampaignForm);
Navigate('Create Campaign');​
Note: I don't believe I need that varCopy variable. It was copied over from another app that has different functionality and required it.
Back on the form the fields are populated. Here is where my problem comes in. The labels, when it comes to comboboxes, don't function as expected.
- If a label is using comboboxname.Selected.Value for the text value data is populated in that label
- If a label is using comboboxname.Selected.columnname then no value is populated in that label
- Any label using the conditional formatting posted earlier in this post does not pick up on the values populated in the comboboxes. For reference the comboboxes are using code similar to this for their DefaultSelectedItems
If(IsBlank(Parent.Default), Blank(), [Parent.Default])​
That about sums it up. The last post I had on this topic was working towards a reevaluation of the form data but as I started this post, it dead ended after the first failed attempt. Any help would be greatly appreciated especially since I am not a coder by profession.