cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JR-BejeweledOne
Super User
Super User

Radio Control Display

I have a radio control that is getting its items from a SharePoint list.  I have an additional column of data that I need to display next to the radio control items.   Each item in the column goes along with one of the radio control items but should not be part of it's title or value.

 

This information needs to be consumed from the list so it is editable without having to modify the app directly.   Here is an image of what I am trying to accomplish (converting an InfoPath form).   It was hard coded into the InfoPath form but we want to get away from that.

 

radiocontrol1.png 

 

Any suggestions to accomplish this will be welcome.

 



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.
1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User
Super User

If you want to display boths fields, OnVisible of the screen, create a collection:

ClearCollect(nnnn,AddColumns(YourList,"JoinedColumns",Concatenate(ColumnToJoin1," ",ColumnToJoin2)))
 
Then on the Radio, use the collection on the Items of the Radio with the JoinedColumn:
YourList.JoinedColumns
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

3 REPLIES 3
Drrickryp
Super User
Super User

Hi @JR-BejeweledOne 

Assuming that you have have a SharePoint list with the Title and Description columns, you could put a pencil icon on the screen and set it's OnSelect property to UpdateContext({showdesc:true}) and its Visible property to !showdesc. Put a TextInput control on the screen and set its Default property to Radio1.Selected.Description.  Put a check icon on the field and set its OnSelect property as Patch(YourList, ID=Radio1.Selected.ID,{Description:TextInput1.Text}) and its visible property to !showdesc.  Set the Visible property of the TextInput and check icon as showdesc. The list shown in the highlighted label is and the Char(10) is used to space the items to match the radio control.

 

 

Concatenate(LookUp(FakeNames,state="GA",company_name),Char(10),Char(10),LookUp(FakeNames,state="WY",company_name),Char(10),Char(10),LookUp(FakeNames,state="WI",company_name),Char(10),Char(10),LookUp(FakeNames,state="WA",company_name),Char(10),Char(10),LookUp(FakeNames,state="VA",company_name))

 

 

Annotation 2020-05-18 130136.png

The result is that the pencil icon unhides the check icon and the TextInput controls.  Following the Patch() function you could put ;UpdateContext({showdesc:false}) and the pencil icon will become visible and the textbox and check icon will be hidden. 

Not exactly what I am looking for.   I don't need to patch the description to anything, but it needs to be there so the person making the selection in the Radio control, has the 'definition' of what they are selecting.    So it needs to be visible up front without having to click anything but it also needs to be editable without having to modify the form. 

 

I think I can do it in a Combo box, but I don't know if I want to go that route.

  



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.
eka24
Super User
Super User

If you want to display boths fields, OnVisible of the screen, create a collection:

ClearCollect(nnnn,AddColumns(YourList,"JoinedColumns",Concatenate(ColumnToJoin1," ",ColumnToJoin2)))
 
Then on the Radio, use the collection on the Items of the Radio with the JoinedColumn:
YourList.JoinedColumns
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,871)