Hello All.
I have a simple If condition in the JS section of a button element that makes an alert popup when the else happens:
The typical Javascript alert popup is just so ugly. I would rather that alert be something nicer like a Bootstrap alert. I've tried searching the forum and Googling without any luck. If anyone would have any suggestions it would be greatly appreciated.
Thanks in advance.
I have a simple If condition in the JS section of a button element that makes an alert popup when the else happens:
Code:
var duration = Fabrik.getBlock('form_1').formElements.get('bw_projects___duration');
/* Get an element's value: */
value = duration.get('value');
if (value !== 0) {window.open("http://localhost/gantt/gantt.php");} else {alert("Please enter a start date & end date first.");}
Thanks in advance.