Forum Activity for @blindmime

blindmime
@blindmime
03/09/15 02:21:36PM
772 posts

Date drop down showing date when not entered


Design and Skin Customization

I've done it with and without a type of 'date'. Doesn't seem to do anything either way.

I've tried changing the value of a different 'text' type field, just to see, and that does work.
blindmime
@blindmime
03/09/15 01:37:28PM
772 posts

Date drop down showing date when not entered


Design and Skin Customization

Yes, 5.2.27

This is what I have right now in the update section of the module's index.php:

 // Task Completed Date
    $_tmp = array(
        'name'      => 'task_completed_date',
	 'label'     => 10653,
        'value' => false
    );
    jrCore_form_field_create($_tmp);
blindmime
@blindmime
03/09/15 08:38:55AM
772 posts

moving data from one module to another


Design and Skin Customization

Can I pay someone to show me how to do this?
blindmime
@blindmime
03/09/15 08:31:30AM
772 posts

multiple image uploads on image form field


Using Jamroom

No doubt it's something I'm doing. I'll send over the module.
blindmime
@blindmime
03/09/15 08:30:06AM
772 posts

Date drop down showing date when not entered


Design and Skin Customization

It doesn't seem to be doing anything at all.
blindmime
@blindmime
03/06/15 01:28:13AM
772 posts

Date drop down showing date when not entered


Design and Skin Customization

Seeing a date in the field when nothing has been entered has always been confusing to me. I naturally think it's a value that's been entered. Now I have a client complaining of the same thing.
blindmime
@blindmime
03/06/15 12:48:54AM
772 posts

multiple image uploads on image form field


Using Jamroom

With 'value' => false no images are displayed. If I take that line out, only one image is displayed. If I don't reference this field at all in the update section, then it does display multiple photos, but I can't upload multiple photos.
updated by @blindmime: 03/06/15 01:07:21AM
blindmime
@blindmime
03/06/15 12:41:07AM
772 posts

Date drop down showing date when not entered


Design and Skin Customization

I looked at the source and there is a javascript affecting display of the date field:

<script type="text/javascript">
$(document).ready(function(){
try { $('#task_completed_date').glDatePicker({ onChange: function(target,newDate) { var yy = newDate.getUTCFullYear().toString(); var mm = (newDate.getMonth() + 1).toString(); var dd = newDate.getDate().toString(); target.val((mm[1] ? mm : "0" + mm[0]) +"/"+ (dd[1] ? dd : "0" + dd[0]) +"/"+ yy.substring(2)); } }); } catch(e) {};
try { $('#task_week').glDatePicker({ onChange: function(target,newDate) { var yy = newDate.getUTCFullYear().toString(); var mm = (newDate.getMonth() + 1).toString(); var dd = newDate.getDate().toString(); target.val((mm[1] ? mm : "0" + mm[0]) +"/"+ (dd[1] ? dd : "0" + dd[0]) +"/"+ yy.substring(2)); } }); } catch(e) {};

    try {
    var active_e0f3fd85_uploads = {};
    var active_e0f3fd85_ulcount = 0;
    var pm_task_photo = new qq.FileUploader({
        element: document.getElementById('pm_task_photo'),
        action: 'http://lfdgcare.com/core/upload_file/',
        inputName: 'pm_task_photo',
        acceptFiles: 'png,gif,jpg,jpeg',
        sizeLimit: 10485760,
        multiple: false,
        debug: true,
        params: { upload_name: 'task_photo', field_name: 'pm_task_photo', token: 'cb5a864b8c8aa5f44e8f6c8339e9c593', upload_token: '127487e5c8f66809a8d4c0ce66652051', extensions: 'png,gif,jpg,jpeg', multiple: 'false' },
        uploadButtonText: 'Upload a new Image',
        cancelButtonText: 'cancel',
        failUploadText: 'upload failed',
        onSubmit: function(id,fileName) {
            active_e0f3fd85_ulcount++;
            if (0 > 0 && active_e0f3fd85_ulcount > 0) { return false; }
        },
        onUpload: function(id,fileName) {
            active_e0f3fd85_uploads[fileName] = 1;
            $('.form_submit_section input').attr("disabled","disabled").addClass('form_button_disabled');
        },
        onComplete: function(id,fileName,response) {
            delete active_e0f3fd85_uploads[fileName]; var count = 0;
            for (i in active_e0f3fd85_uploads) { if (active_e0f3fd85_uploads.hasOwnProperty(i)) { count++; } }
            if (count === 0) { $('.form_submit_section input').removeAttr("disabled","disabled").removeClass('form_button_disabled'); }
        }
    });
    } catch(e) {}
return true;
});
</script>

updated by @blindmime: 03/06/15 12:45:49AM
blindmime
@blindmime
03/06/15 12:25:19AM
772 posts

Date drop down showing date when not entered


Design and Skin Customization

I put this in the update section of index.php:
 // Task Completed Date
    $_tmp = array(
        'name'      => 'task_completed_date',
	 'label'     => 'test label',
        'value' => ''
    );
    jrCore_form_field_create($_tmp);
But it's not changing anything about this item in the form. Even the label remains how I configured it in the form designer. I'm in developer mode, but I also ran an integrity check just in case.

Also, in form designer, I have ordered the items so a chained select field should appear at the 1st position, yet the Title field and another field, THEN the chained select field appear.
blindmime
@blindmime
03/05/15 02:09:27PM
772 posts

Date drop down showing date when not entered


Design and Skin Customization

How do I set the value to an empty string?
  40