How do I hide a control in request form using code.

davidbrownukdavidbrownuk Member Posts: 3
I have modified a Navision report so it outputs CSV information.
This is an option and the Filename is entered in the request form.
I want to be able to hide the filename entry field until the MakeCSV checkbox is ticked.

what is the code I should use?

I have tried the following in the checkbox AfterValidate event but it does not compile. The syntax is wrong.

ONAfterValidate() // checkbox - MakeCSV
IF MakeCSV THEN
"FileNameTextBox".VISIBLE(TRUE)
ELSE
"FileNameTextBox".VISIBLE(FALSE);

Anyone know the correct syntax please.

David

Comments

  • krikikriki Member, Moderator Posts: 9,086
    RequestOptionsForm."FileNameTextBox".VISIBLE(MakeCSV);
    
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • davidbrownukdavidbrownuk Member Posts: 3
    kriki wrote:
    RequestOptionsForm."FileNameTextBox".VISIBLE(MakeCSV);
    

    Brilliant Thanks.
Sign In or Register to comment.