You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

how to make selectone mandatory in editable table

edited Sep 22, 2020 1:31PM in Visual Builder 6 comments

Content

Hi Experts,

I have a editable table that has a select one choice in one of the columns. Would like to make this field as mandatory. I see other inputs text in the table are becoming mandatory when I use required property yes but selectone not.

I'm calling the below JS code on TableBeforeRowEditEndChain event. Attaching the same code.

 

PageModule.prototype.isFormValid = function(form) {
    var tracker = document.getElementById(form);
    if (tracker.valid === "valid") {
      return true;
    } else {
      tracker.showMessages();
      tracker.focusOn("@firstInvalidShown"
      return false;
    }
  }

 

Regards

Ankur

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!