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 Apps
Unanswered

patch outside form

(0) ShareShare
ReportReport
Posted on by 75

hi, i have a problem with patching function, i can use isblank to make sure all field is filled in by user, but not for field that i customize outside form field.

nayem_0-1697000709418.png

 

here is my code, can anyone help me?

Categories:
I have the same question (0)
  • v-mengmli-msft Profile Picture
    on at

    Hi @nayem ,

     

    Is your patch function not working?

    What does the "field that I customize outside form field" mean?

     

    Best regards,

    Rimmon Li

     

     

     

  • Samuel-Zhou Profile Picture
    393 on at

    @nayem Has any error message?

  • AndrewR1 Profile Picture
    1,572 Moderator on at

    Hi @nayem you can validate on inputs that our outside of your form! you would just use the control name and then .text or .selected items or whatever the datatype of the control is. 

    For example I have a form to submit and I'm validation on a text input that is outside of the form control: 

    AndrewR1_0-1697005318046.png

    I cannot see why this wouldn't work for you! 

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. Remember, you can accept more than one post as a solution.

     

    If the content was useful in other ways, please consider giving it Thumbs Up.

     

    Thanks
    Andrew

  • nayem Profile Picture
    75 on at

    the patch function is working, the field that i put that is not form field, i want to patch it with the column in my datasource, but it failed..  

    "field that I customize outside form field" means field that is not generated from the form field.

     

    i added a text input and want to patch it

  • nayem Profile Picture
    75 on at

    the patch function is working, the field that i put that is not form field, i want to patch it with the column in my datasource, but it failed..  

    no error message. my patch is working but only the one field that are not generate from form field not being able to patch in my datasource column..

     

  • nayem Profile Picture
    75 on at

    thanks for the validation, now it can validate, but it just cant patch my field.

  • nayem Profile Picture
    75 on at

    Screenshot 2023-10-11 154946.png

    as you can see the picture above, my position code did not working with the patch function that i made, the text input field that i meant that is outside the form field, is the position code field in the picture.

  • AndrewR1 Profile Picture
    1,572 Moderator on at

    Hi @nayem what is the datatype of the field in your list that you are trying to patch? as I can use the text input to patch my SP list no problems:

    AndrewR1_0-1697011014181.png

    AndrewR1_1-1697011035520.png

     

    I have also tried using From.LastSubmit this isn't casing me any issues: 

    AndrewR1_0-1697011483849.png

     

    AndrewR1_1-1697011518918.png

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. Remember, you can accept more than one post as a solution.

     

    If the content was useful in other ways, please consider giving it Thumbs Up.

     

    Thanks
    Andrew

  • Samuel-Zhou Profile Picture
    393 on at

    @nayem I think the issue might be with the 'form1.lastsubmit' in your patch formula. Since you didn't include this field when you submitted the form earlier, you can't find it in the 'form1.lastsubmit' later on. You probably need to make a separate patch formula for this field.

    try 

     

    Patch('ChangeRequestList',Defaults('ChangeRequestList'),{Unit:TextinputUserName_4.Text})

     

    after your first patch formula

  • nayem Profile Picture
    75 on at

    but i want it to insert the position code for the current submission, thats why i use last submit. do you somehow know why it is cant be performed?

     

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard