Field color based on lead value

Discussions about new features or changes in existing features

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

Field color based on lead value

Postby DarknessBBB » Tue Feb 07, 2017 6:01 am

Hello everybody!
Quick question: I can't find the code portion where the fields are populated in the agent screen when the customer answers.
My goal is to change the background color of the "comments" textarea with a PHP if.

Is this possible in a raw and quick way? It's just a test

Thank you very much.

Vicibox Redux
VERSION: 2.12-538a
BUILD: 160122-1401
Single server installation
DarknessBBB
 
Posts: 328
Joined: Mon Jul 16, 2007 10:14 am

Re: Field color based on lead value

Postby mflorell » Tue Feb 07, 2017 6:37 am

That wouldn't be PHP, you'd have to use CSS to do it, and there's no framework to do that so it would take a bit of work to do that on a per-call basis.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Field color based on lead value

Postby DarknessBBB » Tue Feb 07, 2017 6:52 am

Thank you very much Matt
DarknessBBB
 
Posts: 328
Joined: Mon Jul 16, 2007 10:14 am

Re: Field color based on lead value

Postby DarknessBBB » Tue Feb 14, 2017 9:40 am

Very raw (but working) workaround:

Code: Select all
<textarea  rows="10" cols="10"  autofocus="autofocus" onfocus="if(this.value.length>5) this.style.backgroundColor = '#ff0000';if(this.value.length<=5) this.style.backgroundColor = '#ffffff'"></textarea>
DarknessBBB
 
Posts: 328
Joined: Mon Jul 16, 2007 10:14 am


Return to Features

Who is online

Users browsing this forum: No registered users and 35 guests