cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper V
Helper V

How to fix the value of lookup field, after item is created

Hello,

I need to fix the selected value of lookup formula, when item is already cteated. This field should not change anymore, even if the lookup item is changing.

Is it possible to do it? Nad how to build formula?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @Galina73 ,

Do you want to:
display lookup field choices without any change even if there's a new record created in related list?

Firstly, even if there's a new record created in related list, the value of lookup field will not change.

Just there will be a new added choice for the lookup field.

Why  do you not want that new choice?

Actually, I so not quite understand.

If you do not want that new choice, you just need to filter out that new added choice for the lookup field combo box.

You could set like this:
lookup field combo box's Items:

Filter(
       Choices(listname.lookupfieldname),
       Id<Last(Choices(listname.lookupfieldname)).Id
      )

 

 

 

Best regards,

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Resident Rockstar
Resident Rockstar

Hi @Galina73 ,

you can use the Blank() function for change the value or make it blank once your data is updated.
that means is you can set a variable as a blank value once your record is updated.

Assuming that - you have a formula like below - 
Set(SelectedItem, Lookup(Source, Title<>"Value");


So you can use the blank function onSelecte property for you button that is updating the record.
like below - 
Set(SelectedItem, Blank());

Thanks,

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay

Hi, Vijay

 

So, my first step should be to set a variable, and I simply copying, what you wrote Set(SelectedItem, Blank())- is it correct?

 

And I am not clear about the second step. As of now my formula looks like this

Galina73_0-1603108440120.png

 

How shall I modify it?

 
 
 

 

Community Support
Community Support

Hi @Galina73 ,

Do you want to:
display lookup field choices without any change even if there's a new record created in related list?

Firstly, even if there's a new record created in related list, the value of lookup field will not change.

Just there will be a new added choice for the lookup field.

Why  do you not want that new choice?

Actually, I so not quite understand.

If you do not want that new choice, you just need to filter out that new added choice for the lookup field combo box.

You could set like this:
lookup field combo box's Items:

Filter(
       Choices(listname.lookupfieldname),
       Id<Last(Choices(listname.lookupfieldname)).Id
      )

 

 

 

Best regards,

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (3,984)