cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

Re: SubmitForm function can only work on a form. Wrong kind of control input is given...

Yes via the admin portal

Highlighted
Advocate III
Advocate III

Re: SubmitForm function can only work on a form. Wrong kind of control input is given...


@rachelkettle wrote:

Yes via the admin portal


Ok, I did the same.

Highlighted
Advocate III
Advocate III

Re: SubmitForm function can only work on a form. Wrong kind of control input is given...


@Anonymous wrote:

Hello,

 

Agreed. There seems to many posts about SUBMITFORM having issues. I did all variants of rebuilding. Recreated the sql connector. Re-imported from the TEST environment and so on. Actually, this app works fine in the TEST and DEV environments. I did figure out a work around though. I changed the SUBMITFORM to PATCH. 

 

I did a test with Patch and it works, but I'm not sure if I want to go down this route without breaking something else 🤬🤬🤬 I don't have time for this and testing 🤬🤬🤬

 

Patch(
    List1,
    Defaults(List1),
    {Title: DataCardValue4.Text}
);
Navigate(
    BrowseScreen1,
    ScreenTransition.Fade
)

I'll wait to see what M$ are going to do about this @$%^🤬🤬🤬🤬🤬🤬🤬

Highlighted
Advocate I
Advocate I

Re: SubmitForm function can only work on a form. Wrong kind of control input is given...

Ah thanks, although i also don't fancy going down the route of changing the submit forms to patches either...i have found that if the button sits within the form itself it produces the error and doesn't perform an update, but if the button sits outside the form - with the exact same submitform(formname) command it works...!

 

I can use this as a workaround for developing but will need the buttons to sit within the forms when deploying Live so i hope this is fixed asap!! 

Highlighted
Advocate III
Advocate III

Re: SubmitForm function can only work on a form. Wrong kind of control input is given...


@rachelkettle wrote:

Ah thanks, although i also don't fancy going down the route of changing the submit forms to patches either...i have found that if the button sits within the form itself it produces the error and doesn't perform an update, but if the button sits outside the form - with the exact same submitform(formname) command it works...!

 

I can use this as a workaround for developing but will need the buttons to sit within the forms when deploying Live so i hope this is fixed asap!! 


Hence why the original Tick button in the original QuickActionBar worked for me - this area is outside of the form. The 🤬

 

Next thing they'll break is the Patch function 🥶🥶🥶

Highlighted
Advocate II
Advocate II

Re: SubmitForm function can only work on a form. Wrong kind of control input is given...

I just ran into this issue as well.  Same error message and everything.  It happened randomly after saving my app.

Highlighted
Frequent Visitor

Re: SubmitForm function can only work on a form. Wrong kind of control input is given...

Same here! Please let me know if you have any news regarding this!
Highlighted
Advocate III
Advocate III

Re: SubmitForm function can only work on a form. Wrong kind of control input is given...

Reverting to the previous version ending in .14 solved it for me. 

Highlighted
Advocate II
Advocate II

Re: SubmitForm function can only work on a form. Wrong kind of control input is given...

That fix may work for editing it, but every time you publish the app, it updates to the newest version.

Also... that doesn't work for me even in the development studio.  I'm not sure what the difference is for you and me.

Highlighted
Advocate III
Advocate III

Re: SubmitForm function can only work on a form. Wrong kind of control input is given...

Yes agreed. 

 

Also I found it only fixed the problems for PowerApps apps - it does not solve the problem for PowerApps forms which also display the error even when being in version ending .14!

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,549)