Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Disable invisible Mandatory Drop Down List

Avatar

Avatar
Validate 25
Level 2
mmgiath
Level 2

Likes

6 likes

Total Posts

321 posts

Correct Reply

0 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 2
mmgiath
Level 2

Likes

6 likes

Total Posts

321 posts

Correct Reply

0 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
mmgiath
Level 2

06-04-2018

I can not submit my form because I can not disable a invisible Mandatory DDL.

I have try: form1.PageA.Sub_B.Table2.Row1.DDL.mandatory = "disabled"; but does not work!

I control this DDL from another DDL with a script on change:

switch (xfa.event.newText)

{

case "Kimel":

form1.PageA.Sub_B.Table2.Row1.DDL.mandatory = "disabled";

form1.PageA.Sub_B.Table2.Row1.DDL.presence ="invisible";

break;

}

I am using this Function to validate my form:

function Ex1ValidFields()

{

   var bRtn = false;

   var aErrMsg = [];

   var rgEmpty = /^\s*$/;

if(( form1.PageA.Sub_B.Table2.Row1.DDL.rawValue == null) || rgEmpty.test(form1.PageA.Sub_B.Table2.Row1.DDL.rawValue))

aErrMsg.push("DDL");

if(aErrMsg.length == 0)

      bRtn = true;

else

app.alert("One required fields below have not been filled out:\n\n   * " + aErrMsg.join("\n   * ") ,4);;

return bRtn;

   }

Thanks for your help

Accepted Solutions (0)

Answers (0)