re WebForm Open New Tab

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

re WebForm Open New Tab

Postby hunter2009 » Tue Jun 08, 2021 11:27 am

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
Cento-OS-7 /Almalinux-9.X/Rockylinux-9.X | Version: 2.14-926a| BUILD: 210429-1624 | Asterisk 16.| Viciphone2.1 |

with warm Regards
Hunter
Skype Id : hunter200924
Thank you
Share your experience & Ideas here so that it will be use full for All
hunter2009
 
Posts: 40
Joined: Tue Dec 08, 2009 4:35 am
Location: India

Re: re WebForm Open New Tab

Postby mflorell » Tue Jun 08, 2021 12:05 pm

If you want to use custom variables in the WEBFORMs, you need to prefix the value with "VAR" (before the 'http')
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: re WebForm Open New Tab

Postby hunter2009 » Tue Jun 08, 2021 1:09 pm

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]
Cento-OS-7 /Almalinux-9.X/Rockylinux-9.X | Version: 2.14-926a| BUILD: 210429-1624 | Asterisk 16.| Viciphone2.1 |

with warm Regards
Hunter
Skype Id : hunter200924
Thank you
Share your experience & Ideas here so that it will be use full for All
hunter2009
 
Posts: 40
Joined: Tue Dec 08, 2009 4:35 am
Location: India

Re: re WebForm Open New Tab

Postby mflorell » Tue Jun 08, 2021 3:16 pm

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
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: re WebForm Open New Tab

Postby hunter2009 » Wed Jun 09, 2021 3:14 am

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
Cento-OS-7 /Almalinux-9.X/Rockylinux-9.X | Version: 2.14-926a| BUILD: 210429-1624 | Asterisk 16.| Viciphone2.1 |

with warm Regards
Hunter
Skype Id : hunter200924
Thank you
Share your experience & Ideas here so that it will be use full for All
hunter2009
 
Posts: 40
Joined: Tue Dec 08, 2009 4:35 am
Location: India

Re: re WebForm Open New Tab

Postby williamconley » Thu Jun 10, 2021 1:38 am

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-)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: re WebForm Open New Tab

Postby hunter2009 » Thu Jun 10, 2021 8:55 am

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]
Cento-OS-7 /Almalinux-9.X/Rockylinux-9.X | Version: 2.14-926a| BUILD: 210429-1624 | Asterisk 16.| Viciphone2.1 |

with warm Regards
Hunter
Skype Id : hunter200924
Thank you
Share your experience & Ideas here so that it will be use full for All
hunter2009
 
Posts: 40
Joined: Tue Dec 08, 2009 4:35 am
Location: India

Re: re WebForm Open New Tab

Postby jxk7581 » Fri Dec 01, 2023 2:16 pm

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.
OS: CentOS release 6.9 (Final)
KERNEL VERSION: Linux version 2.6.32-696.20.1.el6.x86_64
INSTALL METHOD: https://swanand18.blogspot.com/2017/06/vicidial-scratch-installation-centos-
VERSION: 2.14-644a
BUILD: 180310-2321
ASTERISK: 13.17.2-vici
DAHDI: 2.11.1
jxk7581
 
Posts: 12
Joined: Fri Sep 16, 2016 2:51 pm
Location: Boston, MA


Return to Support

Who is online

Users browsing this forum: No registered users and 85 guests