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 Platform Community / Forums / Power Pages / On Multistep form, una...
Power Pages
Unanswered

On Multistep form, unable to change the radio button field value on click of submit button

(0) ShareShare
ReportReport
Posted on by 89

Hi All,

I am trying to set a radio button value on click of the Submit button. I have a Multistep form. It has 2 steps and in Portal management, on 2nd step--> Form Options tab, under custom JavaScript, I have written JS. Please see below. 

 

 

if (window.jQuery) {
 (function ($) {
 if (typeof (entityFormClientValidate) != 'undefined') {
 var originalValidationFunction = entityFormClientValidate;
 if (originalValidationFunction && typeof (originalValidationFunction) == "function") {
 entityFormClientValidate = function () {
 originalValidationFunction.apply(this, arguments);
 $("#cr4f7_submitstatus_1").prop('checked', true);
 return true;
 };
 };
 }
 }(window.jQuery));
}

 

Step - 2 screenshots below.

General Tab

AnjanChidige_0-1679291991726.png

 

Form Options Tab 

AnjanChidige_3-1679292273009.png

 

 

I have a Candidate table with 2 forms. 1st form is referenced in the Step - 1 and 2nd form is referenced in the Step - 2 on the Multistep form. I am not using Basic Form in these 2 steps. 

 

Here is the UI screenshot

AnjanChidige_4-1679292323431.png

On click of Submit button,  the submit status radio button value is not changed to YES. Please share your thoughts on how to fix this.

 

Thanks

 

Categories:
I have the same question (0)
  • Anjan Chidige Profile Picture
    89 on at

    When I add the debugger; to the JavaScript code, the flow is NOT passing inside of the IF control

     statement. When I execute the code inside the IF, it evaluated to true. Its really confusing.

    if (originalValidationFunction && typeof (originalValidationFunction) == "function") {
     entityFormClientValidate = function () {
     originalValidationFunction.apply(this, arguments);
     $("#cr4f7_submitstatus_1").prop('checked', true);
     return true;
     };
     };

     

  • pwc_i4_etttttt Profile Picture
    2 on at

    Hi 

    Although I have no way to answer your question. But there is a question I want to ask you: the form font in your diagram looks adjusted, how did you adjust it?

  • Fubar Profile Picture
    8,493 Super User 2026 Season 1 on at

    Edit: ignore my previous post, was an answer to someone elses post by mistake

     

    Check if the "entityFormClientValidate" object exists, if not you can try defining it yourself or you should be able to set up a Page_Validator instead https://learn.microsoft.com/en-us/power-apps/maker/portals/configure/add-custom-javascript#additional-client-side-field-validation

     

    (a long time ago there was a bug, that was fixed, where the object didn't exist for some Web Templates, and I think one of the workarounds was to just define the object in your JavaScript)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Valantis Profile Picture

Valantis 49

#2
11manish Profile Picture

11manish 33

#3
Haque Profile Picture

Haque 28

Last 30 days Overall leaderboard