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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

davidcornett
davidcornett
Offline
  • 15-05-2012
    Interesting, when using the required fields function even in a blank form, the fields still have red borders even after the user enters something. Only the following script works: if (this.rawValue != null) { this.mandatory = "disabled"; } else {this.mandatory = "error"; }This has to be placed on al...

    Type

    Questions

    Views

    442

    Likes

    0

    Replies

    0
  • 15-05-2012
    Hi,Is it possible to programmatically change a form's file name? I got this idea while doing a function in VBA (where this is definitely possible).I was thinking of something like this:event.target.documentFileName = textfield1.rawValue;The context is that I have a non-distributed form that is submi...

    Type

    Questions

    Views

    3.4K

    Likes

    0

    Replies

    1
  • 09-05-2012
    I found out what was causing the problem was my own misunderstanding of the loop variables. currentElement is designed to be the child of wherever the function is called from. So I changed the if/then statement in the function to affect currentElement's parent: if(currentElement.className === "subfo...

    Type

    Questions

    Views

    372

    Likes

    0

    Replies

    0
  • 09-05-2012
    Ok I have a feeling the problem lies in my loop itself (as I said I adapted it from another use).Is it due to how I'm defining the variable currentElement? I think it's referencing myParentObject.nodescurrentElement = allChildElements.item(i);allChildElements = myParentObject.nodes;

    Type

    Questions

    Views

    362

    Likes

    0

    Replies

    0
  • 09-05-2012
    Well, my first inclination was to try:SegmentScripts.Indie(this);on the subform that I want to disappear. This seems to only hide subforms UNDER it in the heirarchy and not it itself. So it works as long as I have subforms under it but if it's the lowest subform child in the heirarchy then it doesn'...

    Type

    Questions

    Views

    356

    Likes

    0

    Replies

    0
  • 09-05-2012
    Hi,When calling a function that hides/shows subforms, I can only seem to progress up in the heirarchy to parent(s).Here's how I call the functionSegmentScripts.Indie(this.parent);The problem is that if I place the "call" on a subform I'm trying to hide, it will hide sibling subforms unecessarily. If...

    Type

    Questions

    Views

    1.4K

    Likes

    0

    Replies

    4
  • 09-05-2012
    Srini,I have one follow up question. If I only want a single subform to be hidden (and not its parent), how can I do that? The reality of my form is that the subforms I want hidden are not all within the same parent, and other sibling subforms will have a different script.I tried to call it using th...

    Type

    Questions

    Views

    518

    Likes

    0

    Replies

    0
  • 09-05-2012
    Thank you so much Srini!

    Type

    Questions

    Views

    443

    Likes

    0

    Replies

    0
  • 08-05-2012
    Hi,I have a basic check that shows or hides a subform based on if a checkbox has been checked or not.if (checkbox.rawValue == 1) {this.presence = "visible";}else {this.presence = "hidden":}Now, this checkbox controls the visibility of multiple subforms, so I would like to have a function on a script...

    Type

    Questions

    Views

    2.0K

    Likes

    0

    Replies

    3
  • 23-04-2012
    So you had 3 rawValues export over? The way the test PDF is set up, there should be 4 field columns (1 being null). Well, if it's some bug on my version, at least I have the work around of keeping the buttons unamed.

    Type

    Questions

    Views

    487

    Likes

    0

    Replies

    0
Top badges earned by davidcornett
Customize the badges you want to showcase on your profile