by the way, for now I added the following code to handle our needs:
Within comprofiler.class.php Find:
[code:1]
function getFieldEntry($ui,&$calendars,$oType,$oName,$oDescription,$oTitle,$oValue,$oReq,$oLabel,$oID,$oSize, $oMaxLen, $oCols, $oRows,$oProfile, $rowFieldValues=null,$oReadOnly=0) {
global $ueConfig,$database,$mosConfig_live_site;
...
[/code:1]
and add the following:
[code:1]
$oValue = ( ( $prefill = ( isset( $_REQUEST[ $oName ] ) && $oValue == null ) ) ) ? $_REQUEST[ $oName ] : $oValue ;
[/code:1]
This should invoke the desired behaviour for TextFields/TextAreas, etc... those with NULL values, and only when the matching param is present via GET/POST.
I will be expanding this further to force such form elements to READONLY (or hide altogether) when the "pre-fill" conditions are met. We LOVE this component, but for us is used primarily as a "Registration-expansion pack"
Great work, nevertheless!
EDIT:
I have updated the REPLACEMENT statement above. It now captures the $prefill condition as a boolean for use further in the script.
Post edited by: moneybagsxp, at: 2006/05/08 18:19