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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / InputText Fields rando...
Power Apps
Unanswered

InputText Fields randomly missing during Submit

(0) ShareShare
ReportReport
Posted on by 12

Greetings All,

 

I've got 8 text fields, (5 being populated from Radio Buttons) and 3 being populated from a Context (userDetails: Office365Users.MyProfile() or Office365Users.UserProfile(DataCardValue.Selected.Mail).

 

Randomly, I can submit from the Studio and have the values populate of these 3 Text Fields, however outside of Studio, they refuse to populate on submit.

 

I've checked the Context and ensured the details are correct using labels etc. 

 

I've also completely re-added these fields, in an attempt to fix them.

 

Any thoughts? I'm using Default: userDetails to populate them.

 

Cheers

 

 

Categories:
I have the same question (0)
  • Meneghino Profile Picture
    6,949 on at

    Hi @aR

    This is an issue with the performance of the Office365Users connector: it is slow to fetch data so it will be blank if it does not make it on time.

    What I usually do is cache the data I need so that I don't have to call the Office365Users every time.

    One idea, for example is to have a text box (MyTextBox) somewhere (even on another screen so not visible to the user) and set its text property to Office365Users.UserProfile(DataCardValue.Selected.Mail)  Then use MyTextBox.Text as the value for your Patch function to submit the values.

    If you give some more details, then I can be more specific with advice.

  • aR Profile Picture
    12 on at

    I went one better, onVisible(Screen1) UpdateContext(userDetails: Office365Users.MyProfile()), fires when the screen first comes up, then loads a new form.

     

    It should be viable in that the screen loads, the text fields ARE POPULATED but upon submit, don't do anything. The only thing I can think of is that onSubmit the Office365 API gets called again which is what's failing but that would just be... bad design =\

  • Meneghino Profile Picture
    6,949 on at

    Hi @aR

     

    The API will not get called again.

     

    The syntax for the update is missing {}, the correct syntax is:

    UpdateContext({userDetails: Office365Users.MyProfile()})

    I also suggest checking the content of the userDetails variable with the new capabilities in Studio, to make sure the right data is there and the variable is of record type. (See screenshot below)

     

    __.JPG

  • aR Profile Picture
    12 on at

    That's all good, the typo was on the post, not in the code.

     

    The data is also definitely there as it populates labels as stated in my original post; 

     

    I've checked the Context and ensured the details are correct using labels etc. 

     

    Thanks

  • aR Profile Picture
    12 on at

    Any further thoughts?

  • Meneghino Profile Picture
    6,949 on at

    Hi @aR

    The only high-level thought I have is that there may be an issue with forms.

    I do not use forms as I prefer to use the individual control and then Patch the data to the source, which gives me a lot more control and flexibility.

  • aR Profile Picture
    12 on at

    Thanks, I'll give that a try.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard