2nd one first. Add code to set the fields to readOnly. I added this line to the click event for the add courses button inside the for loop.xfa.resolveNode("AssessEvalChart1["+newChartIndex+"].AssessChart1Table.AssessChart1Row1["+i+"].Prog-DeptObjChart1").access = "readOnly"Back to the 1st problem. Y...
They'll need to copy over in a similar way as the other rows did. I would suggest on the exit event for the Prog-DeptObjChart1 field, add code that copies the rawValue from it to the second chart. Your code has something there, now, but it doesn't take into account that there will be multiple instan...
Presuming that there wasn't a problem with the download, the rows stopped repeating because spaces (" ") had been added to a couple of lines in the code. I removed the sapces, and it worked again.Maybe the best thing would be to set the add row buttons' presence to hidden. Then it doesn't appear in ...
Do you think users will have more than 12 objectives that they'll want to put on each course set? Maybe it would be better to stop page breaks in that subform (AssessEvalChart1).
OK, for the other part. Add this code to the end of the click event for your AddMoreCourses button.var newChartIndex = xfa.resolveNode("AssessEvalChart1").instanceManager.count - 1;var rowCount = xfa.resolveNode("AssessEvalChart1[0].AssessChart1Table.AssessChart1Row1").instanceManager.count; for (v...
I figured out one of the problems. Your form uses global binding for "header3", so each time you make a form, you automtically populate the same items, and since it's global, if you change it in another table, it will change the original, too.
I don't know exactly how to tell you to implement this, but you can script the second field to check for a space " " at the beginning. If it's there, delete the space and continue with whatever is supposed to be there to remove the leading white space.If there isn't a space, then you have a letter o...
Yeah, I just made it something simple. It looks for whatever string is in the ().If you had a text field that you want to let the user use to search for something, I'm calling it tfQuery, then your if statement could be:if(TextField1.rawValue.search(tfQuery.rawValue) != -1) ...The "!= -1" is there b...
yep! Javascript has one built in: string.search()Here's an example:if (TextField1.rawValue.search("the") != -1) TextField2.rawValue = "yes";else TextField2.rawValue = "no";http://www.w3schools.com/jsref/jsref_search.aspMessage was edited by: jasotastic81 added external link to w3's site.
this worksif (($.rawValue <= "2014-01-01") and (TextField1.rawValue eq "0271" or TextField1.rawValue eq "0272" or TextField1.rawValue eq "0413"))then TextField2.rawValue = "less and right"else TextField2.rawValue = "more or wrong"endifChange the commands to whatever you need, but that if statement w...