281 comments found

Hello,

I’ve been working with this product over the past couple months and have nothing but good things to say about it. Thank you.

tldr: need to pass question answer from form wizard to x-editable—looking for a simple strategy to set the x-editable initialized values that have been specified by user.

I have a question regarding the implementation of the x-editable portion. We are using this feature as a confirmation page that appears after having completed a survey and am hoping to gain some insight into how to go about passing in the values obtained by the survey to this feature.

I am able to get the x-editable to display the the submitted data (through the passing of an element-name to paragraph tags) as well as submit updated data appropriately, but when you select the link, the value is not passed in from the form wizard and is initialize to the first option of the dropdown.

I’m hoping you may have an easy solution to this problem.

Thank you,

Jake

Cliptheme

Hallo Jake,

since you have adjusted the plug-in, would you mind sending us your code, so that we can check your problem and run some tests. You can also mail us at support@cliptheme.com

Thank you for your cooperation :)

Default-user
the following is the x-editable call on the confirmation page form-wizard.html:
                            <div class="form-group form-white">
                                <label class="col-sm-9 col-md-8 col-lg-6 control-label">
                                    How closely you identify with your business:
                                </label>
                                <div class="col-sm-3 col-md-4 col-lg-3" style="margin-top:3px;">
                                    <a href="#" id="identify_id" class="identify-x" data-type="select" data-pk="1" data-source="/identify" data-original-title="">
                                        <p class="form-control-static display-value" data-display="a_003"></p>
                                    </a>
                                </div>
                            </div>
this is where the x-editable gets the different drop-down selections demo-mock.js:
    $.mockjax({
        url: '/identify',
        response: function(settings) {
            this.responseText = [ 
             {value: "", text: ""},
             {value: "Closely", text: 'Closely'},
             {value: "Indifferent", text: 'Indifferent'},
             {value: "Not", text: 'Not'},
           ];
           log(settings, this);
        }        
    });   
and the following handles the event where the value is changed in the x-editable form form-xedit.js:
    $('.identify-x').editable({
        type: 'source',
        pk: 1,
        name: 'identify_name',

        success: function(reponse, newValue){
            document.getElementById("identify_id").value=newValue;
            //userModel.set('testing', newValue);
        }
    });

thank you!

Cliptheme

Hi, thank you for your detailed message!

The IT department would be very grateful though, if you could send us a complete page, also attached to a mail (support@cliptheme.com), so they won’t need to replicate it.

This way, they would also detect the problem way easier :)

Thanks for your cooperation :)

by
by
by
by
by
by