web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Value changes back

(0) ShareShare
ReportReport
Posted on by 376

Hi together,

 

in my PowerApp for request I have a field which is changed in relation to another field.

IvenSch_0-1711531868791.png

So, as soon as a PO no. is written in the left field, 'PO sent' jumps to 'Waiting for Approval'. That works.

If the PO is released, the 'PO sent' status is manually set to 'Sent'. This also works and appears in the SP list correctly.

IvenSch_1-1711532101638.png

 

But if I open the form again from SP list to change something, it shows 'Waiting for Approval' again. 

IvenSch_2-1711532158445.png

 

If you forget to change it to 'Sent' than, it is stored with 'Waiting for Approval' which is not correct.

 

Here are the codelines for 'PO sent' field:

 

Items: 

 

Choices([@'Purchasing requests'].'PO sent')

 

 

DefaultSelectedItems:

 

 

If(IsBlank(DataCardValue23.Text);{Value:""};{Value:"Waiting for Approval"})

 

 

Maybe the error occurs as I also added a new Flow after setting the 'PO sent' to 'Sent'?

 

IvenSch_3-1711533004941.png

 

Thanks for your help!

Categories:
  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    You put the default value to always be Waiting for approval.

    You should do this a s code

    If(
    IsBlank(DataCardValue23.Text);
    {Value:""};
    LookUp(SPList,PO no.=DataCardValue23.Text).Po sent=Blank();
    {Value:"Waiting for Approval"};
    LookUp(SPList,PO no.=DataCardValue23.Text).Po sent.value
    )

    This of course will only work if your PO no. are unique ID's

  • IvenSch Profile Picture
    376 on at

    It looks senseful what you sent, but I have a mistake and don`t know why:

     

    IvenSch_1-1711543341204.png

    I have replaced ',' with ';' and ';' with ';;' as I`m working with german scheme.

     

    Any idea?

     

     

     

  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

     

    If(
    IsBlank(DataCardValue23.Text);
    {Value:""};
    LookUp(SPList;PO no.=DataCardValue23.Text).Po sent=Blank();
    {Value:"Waiting for Approval"};
    LookUp(SPList;PO no.=DataCardValue23.Text).Po sent.value
    )

     

    try it like this
    If it you still get an error try replacing Blank() with IsEmpty(LookUp(...))

  • IvenSch Profile Picture
    376 on at

    Unfortunately your previous solution doesn`t work as well.

     

    How does the forumla look like with 'IsEmpty')

    If(
     IsBlank(DataCardValue23.Text);
     {Value:""};
     IsEmpty(LookUp('Purchasing requests';'PO no.'=DataCardValue23.Text)).'PO sent');
     {Value:"Waiting for Approval"};
     LookUp('Purchasing requests';'PO no.'=DataCardValue23.Text).'PO sent'.Value
    )
  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at
    Either
    If(
    IsBlank(DataCardValue23.Text);
    {Value:""};
    LookUp(SPList;PO no.=DataCardValue23.Text).Po sent.value=Blank();
    {Value:"Waiting for Approval"};
    LookUp(SPList;PO no.=DataCardValue23.Text).Po sent.value
    )
    Or
    If(
    IsBlank(DataCardValue23.Text);
    {Value:""};
    IsEmpty(LookUp(SPList;PO no.=DataCardValue23.Text).Po sent);
    {Value:"Waiting for Approval"};
    LookUp(SPList;PO no.=DataCardValue23.Text).Po sent.value
    )

    It's really a pain. I'm not familiar with the german Scheme at all. If you still get an error can you just show it to me? since I undertsand german you don't have to translate it for me

     

  • IvenSch Profile Picture
    376 on at

    My PowerApps doesn`t even know "Either"

     

    IvenSch_0-1711552513770.png

     

    It`s killing me...

  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    No it was for you to chose one of both codes

  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    The or is also just so you know the first variant of the code is over

  • IvenSch Profile Picture
    376 on at

    🤣Ok, sorry

  • IvenSch Profile Picture
    376 on at

    This is the error:

     

    IvenSch_0-1711553435023.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard