The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
DoNotSolicit help
Posted: 29 Mar 07 11:52 AM
|
fiogf49gjkf0d I am a sinking ship needing help... On the ConInfo screen is a do not solicit check box which calls onClick="changeDoNotSolicit();" Can someone tell me where I can find this funciton that it is calling? I need 4 separate Do Not Solicit fields (on AccInfo) and mimiced them like the preexisting ConInfo alias ConDoNotSolicit. I can check the boxes, update and the values change. Once they are checked and I uncheck them, the values do not change when I update the screen.
I am guessing that the changeDoNotSolicit() function needs modified, but I don't know where to find it. Any help would be greatly appreciated. I don't know if the "id" has anything to do with it.
My version like condonotsolicit <input type="checkbox" name="dnsmail" id="dnsmail" value="<#FIELD name=dnsmail format=9 formatstring=T/F>" <#FIELD name=dnsmail value="T" options=K> onClick="changeDoNotSolicit();"><input type="hidden" name="dnsmail" value="<#F name=dnsmail format=9 formatstring=T/F>">
|
|
|
|
Re: DoNotSolicit help
Posted: 29 Mar 07 12:15 PM
|
fiogf49gjkf0d MOre detail:
I set up to of my do not solict fields different, both display a true if a True was already existing the database. One version allows me to check a box and it updates it correctly. The other version does not. Neither version will allow me commit a box that was checked to uncheck.
Displays correct value from table T and F, commits True checks, does not not commit False unchecks: <input type="checkbox" name="dnsemail" id="dnsemail" value="T" <#FIELD name=dnsemail value="T" options=K> onClick="changeDoNotSolicit();"><input type="hidden" name="dnsemail" value="<#F name=dnsemail format=9 formatstring=T/F>">
Displays correct value from table T and F, does not commit True checks, does not commit false unchecks (mimiced like the coninfo donotsolicit): <input type="checkbox" name="dnsmail" id="dnsmail" value="<#FIELD name=dnsmail format=9 formatstring=T/F>" <#FIELD name=dnsmail value="T" options=K> onClick="changeDoNotSolicit();"><input type="hidden" name="dnsmail" value="<#F name=dnsmail format=9 formatstring=T/F>">
|
|
|
|
Re: DoNotSolicit help
Posted: 29 Mar 07 1:07 PM
|
fiogf49gjkf0d I don't work with the web client often, and it's been a really long time since I've checked that template, but IIRC I thought the function was defined on script right on that same template. Do you not see it in a script block on that template? |
|
|
|
Re: DoNotSolicit help
Posted: 29 Mar 07 1:30 PM
|
fiogf49gjkf0d I just found it... many functions are called globally from outside of the template. Thanks
|
|
|
|
Re: DoNotSolicit help
Posted: 29 Mar 07 5:26 PM
|
fiogf49gjkf0d Look in coninfo.js. It should be there.
If you have multiple checkbox items to do, you can create a generic function that passes in the current check box control and use the javascript eval() function to update the corresponding hidden field. That way you only have one additional javascript function. The eval() does have a performance penalty, but probably not noticeable in the browser.
Jeff
|
|
|
|
Re: DoNotSolicit help
Posted: 29 Mar 07 5:27 PM
|
fiogf49gjkf0d D'oh! Maybe I should read the entire thread before I reply. 
Jeff
|
|
|
|