Expand my Community achievements bar.

DrDave6
DrDave6
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • Thank you the feedback. My problem here was that when I created my objects, I used dashes in the names, as in "My-First-TextField" and this caused all kinds of problems -- problems that you don't want to wrestle with when you are learning something new!Since renaming all my objects, most of these pr...

    Type

    Questions

    Views

    862

    Likes

    0

    Replies

    0
  • Getting close....Because I'm a newbie, I'm not sure how to change the value of a different field and I will need this for your suggestion to work.To make it simply, assume that I have two fields MyFirst and MySecond.Assume that I'm on the first field (MyFirst). What would I put in the calculate even...

    Type

    Questions

    Views

    859

    Likes

    0

    Replies

    0
  • Thank you for the feedback.I did move the code to the exit event, but from an end-user perspective, I found this a bit confusion. For example, I have the imagefield (photo) and a text field (title),If the user adds an image that is too big and I put the code in the exit event (nothing happens), then...

    Type

    Questions

    Views

    856

    Likes

    0

    Replies

    0
  • Thank you for your question.It's in the validation event

    Type

    Questions

    Views

    856

    Likes

    0

    Replies

    0
  • I'm using LiveCycle Designer 8.I have an Image field in a form with a validation java script that checks the size of the image that the user is adding. If the image is over 1MB, I issue a warning, but leave the image. There is no problem there.However, after the file is saved and upon opening the PD...

    Type

    Questions

    Views

    2.2K

    Likes

    0

    Replies

    11
  • I figured this out...and it's pretty easy too.

    Type

    Questions

    Views

    2.3K

    Likes

    0

    Replies

    0
  • It's a good idea to start setting a coding standard for this stuff. Good suggestion.Perhaps I should start another thread for this, but....I have to use the following function 12 times in my form.var iImage = xfa.resolveNode("NA-Image-1");var nSize = iImage.value.image.value.length ;var nMB = nSize ...

    Type

    Questions

    Views

    2.2K

    Likes

    0

    Replies

    0
  • Thank you ocent12 -- your suggestion worked.I though I can to convert the number value to a string, before I could use it in text...but that is not the case.To understand what I'm doing, I have an ImageField and the user can add a JPG file. I'm then calculating the size of the JPEG to make sure that...

    Type

    Questions

    Views

    2.2K

    Likes

    0

    Replies

    0
  • I'm using the following in a validation eventvar MBn = (iSizeN / 1383.27)/ 1024;The result is a digit with around 10 decimal places.1) What do I need to do so that the result is only 2 decimal places?2) How do I then convert the 2-decimal place number to a text string so that I can use it in a messa...

    Type

    Questions

    Views

    3.7K

    Likes

    0

    Replies

    6
  • Thank you Niall (Paul & Marcel) for your detailed and thoughtful response. That is really appreciated.Because I'm a newbie, I didn't know enough to avoid dashes, when creating fields. To rename them at this stage in the game would be long and error-prone. As a result, I setup a variable as you sugge...

    Type

    Questions

    Views

    1.0K

    Likes

    0

    Replies

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