blackbird2306 wrote:As I can recognize it, you have added a script in script section with all these things like calender, html form etc.?
Not exactly.. all scripting data (code) is written in vicidial.php file, in the head line 18800 about.. I only wrote html in script vicidial admin panel.
blackbird2306 wrote:In this script there is your input with date field. Is this right? But then you inserted your date function in vicidial.php. And now you wonder, why this is not working? The problem is that your input tag or rather your complete script doesn't exist at the moment, when vicidial.php has loaded. This will only happen, when there is a "live call". Then vicidial.php starts an ajax request to vdc_script_display.php, which on the other hand pulls your custom script. Only from this time your input field / script is present.
And why other functions work?
blackbird2306 wrote:My advice:
1. Put all your custom script code, also your date function (prefilled input tag with date would be much easier in PHP language), in a new example.php file in agc directory in order to use it as an iframe in script section
2. Add a new script like in help described (change the values for width and height as needed) with this script text:
I'm afraid that it could be a problem embedding an i frame, 'cause i use SSL and iframe should be on a http.. :/
Anyway... Thanks Blackbird! I'll keep on searching for a solution, if any other has some advice it'll be very appreciated!