Datetime appointment based

QuestionsDatetime appointment based
C3media asked 6 years ago

Hello, will be possible to load datetime based in foreign data table.  As when you use appointment then any datetime would disabled because it is occupied.

 

 

Best regards

1 Answers
Abu Ghufran Staff answered 6 years ago

Hello,

If i understand your question correctly, you can connect onblur event on date field and call a javascript function which can check table via ajax call if that time is occupied or not. If occupied then you an alert a message that selected time is already booked.

$col[“editoptions”][“onblur”] = “function(o) { checkOccupied(o); }”;

<script>
function checkOccupied(o)
{
// perform ajax call to see if o.value time is occupied and alert message
}
</script>

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

16 + 9 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?