

Isaac Harned
Member
Forum Replies Created
-
Isaac Harned
MemberOctober 27, 2022 at 5:12 pm in reply to: Isaac Harned – Here for forms with javascriptPoints: 8,674Rank: UC2 Brainery Purple Belt IIIForm is 100% working, not crashing, and is fast as all get out.
Attached is the working file, all code is placed inside of each dropdown.
Still a little confused on how the layers turn off their print setting, but the issue there is probably not code related.
Can’t thank you enough @lizlarsen , let me know what you think of the modifications I made for the individual dropdown code!
-
Isaac Harned
MemberOctober 26, 2022 at 5:00 pm in reply to: Isaac Harned – Here for forms with javascriptPoints: 8,674Rank: UC2 Brainery Purple Belt IIIThe struggle continues, Children layers do not want to activate and deactivate.
I have tried switching tactics by using substrings to try and match some of these values, using the dash as a placeholder for values before and after. I attempt to grab before the dash to match with the parent, and after the dash to determine if the applicable “NumberOfTaps” dropdown signals the layer to be on or off. Nothing seems to be working on this front
Now also having an issue where layers print settings turn off when I change the initState, even though these are set to “Use Default”. tried submitting this issue to Bluebeam, however they tell me they cannot provide assistance with custom code. I guess I must find a way to change the print setting for the layer as well. I have tried modifying the code so that it ONLY targets the initState, but this does not help.
There is also now a third array of OCGs, this is to turn off all children of parents that have been deactivated. This one is also having the same difficulty as the other loop targeting children layers.
I am getting no specific errors, except for the console displaying a single “false”
-
Isaac Harned
MemberOctober 26, 2022 at 7:02 pm in reply to: Isaac Harned – Here for forms with javascriptPoints: 8,674Rank: UC2 Brainery Purple Belt IIIHere is the latest file with the dropdown coded, sorry for not getting this in earlier
-
-
Isaac Harned
MemberOctober 24, 2022 at 1:28 pm in reply to: Isaac Harned – Here for forms with javascriptPoints: 8,674Rank: UC2 Brainery Purple Belt IIIHere is the latest update to the code and the file. Major thanks to Liz for all the help!
-
Isaac Harned
MemberOctober 28, 2022 at 5:03 pm in reply to: Isaac Harned – Here for forms with javascriptPoints: 8,674Rank: UC2 Brainery Purple Belt IIIThe solution to this was simply the page size. 11 x 17 does not give the font enough of a lower size range to adjust. I had to tell Bluebeam support why this was happening, and that their text boxes DO adjust vertically AND horizontally. 36 x 24 works just fine.
🙄
-
Isaac Harned
MemberOctober 28, 2022 at 9:11 am in reply to: Isaac Harned – Here for forms with javascriptPoints: 8,674Rank: UC2 Brainery Purple Belt IIIThank you Liz, super helpful!!!!!!
-
Isaac Harned
MemberOctober 28, 2022 at 9:10 am in reply to: Isaac Harned – Here for forms with javascriptPoints: 8,674Rank: UC2 Brainery Purple Belt IIIAlso the line:
let childMask = new RegExp(“^” + tap + “-[\\d]{1,2}$”);
when I plug this into regex101, I get some weird search parameters. Never worked with the RegEx constructor, so please bear with me here =)
So if the previous tap variable only stores the number at the end of the string (Let’s say NumberOfTaps1), then this would be constructed as such:
/^1-[\\d]{1,2}$/
The part that is tripping me up is the double slashes I think, what does this do to the digit search?
-
Isaac Harned
MemberOctober 28, 2022 at 8:57 am in reply to: Isaac Harned – Here for forms with javascriptPoints: 8,674Rank: UC2 Brainery Purple Belt IIISo in the local code, the line:
var tap = dropDownName.match(/\d{1,2}$/)
Does this only store what is matched? I.e. it looks at NumberOfTaps1, and only stores the “1” since it matches the search for 1 or 2 digits at the end of the string?
-
Isaac Harned
MemberOctober 27, 2022 at 9:28 am in reply to: Isaac Harned – Here for forms with javascriptPoints: 8,674Rank: UC2 Brainery Purple Belt IIIOh my goodness Liz, you are amazing. It works for sure!!
I am still having the issue of the print setting for the layer toggling off and not back on, will test some more with that.
I am going to work today to modify all the individual dropdowns so that expressions can be applied to all, but this is so fantastic!!
Couple of small questions on the code:
1. The regex variable tapsMask, is this to filter out all layers that are not associated with the terminal and tap dropdowns (i.e. RACH layers)?
2. The double vertical bars, is this an OR statement? Seems like you are testing either the full fname OR the substring prior to the dash.
I have attached a screenshot of the code with some detailed notes for anyone hoping to follow along, please feel free to correct me @lizlarsen if I misinterpret anything! The file below is the latest with the new code loaded into dropdown. Sub dropdowns have not been 100% coded yet, but check out how fast this file moves now!!!
-
Points: 8,674Rank: UC2 Brainery Purple Belt III
Thank you David, and I will keep you guys posted on the Autosize!
-
Isaac Harned
MemberOctober 10, 2022 at 8:28 am in reply to: Isaac Harned – Here for forms with javascriptPoints: 8,674Rank: UC2 Brainery Purple Belt IIIThank you Troy!
-
Points: 8,674Rank: UC2 Brainery Purple Belt III
Thank you Troy!
-
Isaac Harned
MemberOctober 10, 2022 at 8:28 am in reply to: Isaac Harned – Here for forms with javascriptPoints: 8,674Rank: UC2 Brainery Purple Belt IIIThank you David, and I will keep you guys posted on the Autosize!
-
Points: 8,674Rank: UC2 Brainery Purple Belt III
Thank you so much for taking time Liz, You may just save the day on this one.
The “On blur” was actually a work around to make iPad feasible (no mouse, no mouse up), but that may not even be possible with the amount of layers. Testing to come on this.
I am going to add the scripts to the dropdowns today, will post back and let you know.
Regex in java may take me a bit to learn, but maybe some progress here by the end of week.
-
Isaac Harned
MemberOctober 10, 2022 at 8:27 am in reply to: Isaac Harned – Here for forms with javascriptPoints: 8,674Rank: UC2 Brainery Purple Belt IIIThank you so much for taking time Liz, You may just save the day on this one.
The “On blur” was actually a work around to make iPad feasible (no mouse, no mouse up), but that may not even be possible with the amount of layers. Testing to come on this.
I am going to add the scripts to the dropdowns today, will post back and let you know.
Regex in java may take me a bit to learn, but maybe some progress here by the end of week.