gpoobah63
19th April 2011, 16:35
I want to create a form with a button, simliar to a "Continue" button, that only becomes visible if certain criteria is met. Is that possible?
mpfaender
21st April 2011, 15:58
Hi gpoobah63,
you can only enable or disable commands with the disable.commands() and enable.commands() functions.
You can disable the command in the form section as following.
form.all:
init.form:
if value = correct then
enable.commands("<your function>")
else
disabel.commands("<your function>")
endif
You can not do that in the before.programm section!!
best regards
michael
psuryava
27th April 2011, 15:35
Hi gpoobah63,
This is not possible in baan you can acheive your functionality in before.choice of that button . You should check the criteria in before.choice if it met it will go in on.choice otherwise you can put choice.again() in before.choice so that the code on button process can not be executed.
eg.
choice.user.1:
before.choice:
if not criteria then
choice.again()
endif
on.choice:
Function() | or you can write your code h