Issue with button behavior
Hi everyone,
I'm facing an issue when i try to define the behavior of a button. I want it to be enabled only when all the fields of a formula are filled.
The problem is that i have Date Time value and float value. So i can't say " enable when actionflow. .... .Date != ' ' " . It's ok for String but when it's float or date time i can't figure out a solution. (i tried "null" but not working) Can someone help me please? Thanks.
Best Answer
-
Hi ,
what is your current version of XCP.
you can perform form validation ( and button enable/disbale) with various ways.
1- adding validation constraint to your fields and use the isValide of the column box containing your form fields.
2 - for date field you do have isNulldate(date) javascript function that you can use float compare should be also easy if you pland to have a more complexe condition.
you can also use the ifThenElse method that return a var object ( no type in returen and you can like that convert all your condition inputs into empty string bu i guess OOTB js functions should do it.
@Benjamin : this is UI validation we should never make server call to do such a action;
hope this helps
Otman
0
Answers
-
Hello,
You can create a stateless process will run when a field value change.
This process will evaluate if your date time or float is empty.
Regards
0 -
Hi ,
what is your current version of XCP.
you can perform form validation ( and button enable/disbale) with various ways.
1- adding validation constraint to your fields and use the isValide of the column box containing your form fields.
2 - for date field you do have isNulldate(date) javascript function that you can use float compare should be also easy if you pland to have a more complexe condition.
you can also use the ifThenElse method that return a var object ( no type in returen and you can like that convert all your condition inputs into empty string bu i guess OOTB js functions should do it.
@Benjamin : this is UI validation we should never make server call to do such a action;
hope this helps
Otman
0
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 145 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management