Results 1 to 4 of 4
  1. #1

    Display Hidden Fields When Value Changes

    Hi folks,

    When I change the value in a bug form field (yes/no drop down box) I want to other fields to become visible. I have added this functionality easily enough but the bug form has to be opened or closed for the fields to become visible. Is there anyway to refresh the form or for the form to be closed and then reopened, automatically, once this value has been changed?

  2. #2
    SQA Knight
    Join Date
    Jan 2002
    Highlands Ranch, CO, USA

    Re: Display Hidden Fields When Value Changes

    Did you do this via code customization for the form? You have the ability to write VB code to handle this. Do some digging on Customization and you will find it.

    Basically it is an "event" that needs to be handled with code and not at the form level.
    For all the general stuff to know about QA/Test go here http://www.softwareqatest.com/

  3. #3

    Re: Display Hidden Fields When Value Changes

    I have added this code to the Defects_Bug_FieldChange event:

    if FieldName = "BG_USER_53" _
    AND Bug_Fields.Field("BG_USER_53").Value = "Y" THEN
    Bug_Fields.Field("BG_USER_54").IsVisible = true AND _
    Bug_Fields.Field("BG_USER_55").IsVisible = true
    end if

    But when the value of bg_user_53 changes to "Y" it doesn't refresh the form so for the user to be able to see the fields bg_user_54 and bg_user_55 they have to save and close the defect then reopen the defect. I am looking for a way to refresh the form or automatically close and reopen the form so the user can see these fields without having to manually open and close the form.

  4. #4
    Advanced Member cgrzelka's Avatar
    Join Date
    Feb 2005
    Bordeaux, France

    Re: Display Hidden Fields When Value Changes

    I found that you cannot display fields that way if they are not visible upfront, i.e. when the user opens the form.

    So, you should run that piece of code in both Defects_Bug_FieldChange and Defects_Bug_MoveTo (which makes sense for the later, as you want the fields to be visible when the proper conditions are met).

    Also, I'm not sure of the porpose of yuo AND expression on the third and fourth lines : the logicial expression (true and (x = true)) is equivalent to x.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 03:41 PM.

Copyright BetaSoft Inc.