Page 1 of 1

re WebForm Open New Tab

PostPosted: Tue Jun 08, 2021 11:27 am
by hunter2009
HI ,
My requirement : need to this API URL to be open in the same Browser Next Tab

I have added the URL in Web Form and Get Call Launch= Web Form
URL ie :
[url][/url]https://smpledomain.com/etree/detail_call.php?phone=--A--phone_number--B--&agentid=--A--user--B--&campaign=--A--campaign--B--&recording=--A--recording_id--B--
&recording name=--A--recording_filename--B--&phone login=--A--phone_login--B--[url][/url]


This URL not passing my required values It is passing the Default all details with values but not showing some of my required values how to enable in Web Form my required values only

Also I Tried this In Script option mode

I have created Script section with this same URL working perfectly with all required values showing correctly
is it possible any options to open in new tab in the same browser automatically . if i clicked script tab its showing inside the page with all correct Details

Re: re WebForm Open New Tab

PostPosted: Tue Jun 08, 2021 12:05 pm
by mflorell
If you want to use custom variables in the WEBFORMs, you need to prefix the value with "VAR" (before the 'http')

Re: re WebForm Open New Tab

PostPosted: Tue Jun 08, 2021 1:09 pm
by hunter2009
Hi ,
Thanks for your reply Yes Before in front VARhttps://API same response of


Getting all values resonance

[url][/url]https://smpledomain.com/etree/detail_call.php?phone=9994624818&agentid=--A--agent_log_id--lead_id=35&vendor_id--B--&campaign=10001&recordingid=&recording_name=&phonelogin=1000&lead_id=35&vendor_id=&list_id=998&gmt_offset_now=0.00&phone_code=&phone_number=9994624818&title=&first_name=&middle_initial=&last_name=&address1=&address2=&address3=city=&state=&province=&postal_code=&country_code=&gender=U&date_of_birth=0000-00-00&alt_phone=&email=&security_phrase=&comments=&user=1000&pass=test6235&orig_pass=test6235&campaign=10001&phone_login=1000&original_phone_login=1000&phone_pass=test6235&fronter=1000&closer=1000&group=10001&channel_group=10001&SQLdate=2021-06-07+200103&epoch=1623076264&uniqueid=&customer_zap_channel=&customer_server_ip=&server_ip=192.168.2.50&SIPexten=1000&session_id=8600052&phone=9994624818&parked_by=35&dispo=&dialed_number=9994624818&dialed_label=MANUAL_DIALNOW&source_id=&rank=0&owner=&camp_script=&in_script=&in_script_two=&script_width=1450&script_height=716&fullname=1000&agent_email=&recording_filename=&uer_custom_one=s=&session_name=1623076248_100016683071[url][/url]

Re: re WebForm Open New Tab

PostPosted: Tue Jun 08, 2021 3:16 pm
by mflorell
Not sure why it's not working fo ryou, I just tested these on my system and it worked fine:

Code: Select all
Webform campaign setting:
VARhttp://192.168.1.3/agc/vdc_LTT_generate.php?phone=--A--phone_number--B--&lead_id=--A--lead_id--B--&user=--A--user--B--&address3=--A--address3--B--&vendor_lead_code=--A--vendor_lead_code--B--&owner=--A--owner--B--&province=--A--province--B--&security_phrase=--A--security_phrase--B--&alt_phone=--A--alt_phone--B--

URL opened in agent screen:
http://192.168.1.3/agc/vdc_LTT_generate.php?phone=9998887112.php&lead_id=1928575&user=6666&address3=3125558872&vendor_lead_code=999999&owner=Test+Outbound+Call&province=Manitoba&security_phrase=testing&alt_phone=3125552276

Re: re WebForm Open New Tab

PostPosted: Wed Jun 09, 2021 3:14 am
by hunter2009
Let me check the same http://192.168.1.3/agc/vdc_LTT_generate.php? and update you any options to see the debug log ? am using cent OS 7

In campaign settings : Web Form Target: _blank added
now getting max other values BUT recording id and file names not showing in the values

Web Form Target:
URL
[url][/url]https://smpledomain.com/etree/detail_call.php?phone=--A--phone_number--B--&agentid=--A--user--B--&campaign=--A--campaign--B--&recording=--A--recording_id--B--
&recording name=--A--recording_filename--B
--&phone login=--A--phone_login--B--[url][/url]


Also our Server is in outside let try with domain and the IP

Re: re WebForm Open New Tab

PostPosted: Thu Jun 10, 2021 1:38 am
by williamconley
hunter2009 wrote:Let me check the same http://192.168.1.3/agc/vdc_LTT_generate.php? and update you any options to see the debug log ? am using cent OS 7

In campaign settings : Web Form Target: _blank added
now getting max other values BUT recording id and file names not showing in the values

Web Form Target:
URL
[url][/url]https://smpledomain.com/etree/detail_call.php?phone=--A--phone_number--B--&agentid=--A--user--B--&campaign=--A--campaign--B--&recording=--A--recording_id--B--
&recording name=--A--recording_filename--B
--&phone login=--A--phone_login--B--[url][/url]


Also our Server is in outside let try with domain and the IP


i do not see "VARhttps" in your example. it appears you're showing the result (useful) but not the value in the web form field (which would also be useful). You're also trying to use the URL tag instead of the code tag, which makes it look odd.

you should also provide the recording field from the campaign (since that will be used to determine the filename, and may be useful).

And ... is the agent on a call that is in fact being recorded? I mean ... if there's no recording in progress, there would be no recording ID, right? 8-)

Re: re WebForm Open New Tab

PostPosted: Thu Jun 10, 2021 8:55 am
by hunter2009
Hi William,
i have added VAR i missed when post VAR and Web From Target= _blank / Campaign recording File name = CUSTPHONE_CAMPAIGNS_FULLDATE_AGENTS

[url][/url]https://smpledomain.com/etree/detail_call.php?phone=--A--phone_number--B--&agentid=--A--user--B--&campaign=--A--campaign--B--&recording=--A--recording_id--B--
&recording name=--A--recording_filename--B
--&phone login=--A--phone_login--B--[url][/url]

Now When i clicked the Web form Button while on call its showing the correct Detail l when i have enabled Get Launch =Web form its opening in New private Tab and missing some Values mainly recording id and recording file name. I[url]need to open in new tab in the same browser[/url]

Details
[url][/url]https://smpledomain.com/etree/detail_call.php?phone=9994692579&agentid=1000&campaign=10001&recording=522&recording+name=9994692579_10001S_20210610-191517_1000S&group=10001&phonelogin=1000[url][/url]

Re: re WebForm Open New Tab

PostPosted: Fri Dec 01, 2023 2:16 pm
by jxk7581
Resurrecting this subject, since the inital requirement of opening the Web Form in a new TAB rather than a new WINDOW was not addressed.

In agc/vicidial.php, there is a function which handles Get Call Launch

Code: Select all
window.open(TEMP_VDIC_web_form_address, web_form_target, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450');


The problem here is that the window.open method has hard coded specs, which force it to pop in a new window
Code: Select all
, 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=640,height=450'


If you change the window.open method to remove these specs, it will open in a new tab:

Code: Select all
window.open(TEMP_VDIC_web_form_address, web_form_target);


This should be set as an option in the Admin page. It would be simple to implement.