Change field settings from live app

Hi Does any of you guys know a way to let a user change field settings from the live app.

For example the Timer field has a minutes format setting, where you can choose if the stepping should be in intervals of 1,5,10,15 or 30 minutes at a time.

I would like to give the user of my app, the possibility to change this from the live app.

Any suggestions?

1 Like

Sure. You could create a toggle button on the screen where they choose and then set a variable for 'step' based on the value of that field using jquery. on the click event update the variable and reload the screen. Here's a script dealing with changing intervals which would be a good starting point:

var view_names = ["view_388", "view_680", "view_636", "view_641", "view_645"]; //change to the views you want to edit

view_names.forEach(bindToUpdate1);

function bindToUpdate1(selector_view_name){

$(document).on('knack-view-render.' + selector_view_name, function(event, view, data) {
$(document).ready(function(){
$('.ui-timepicker-input').timepicker({
minTime: '05:00:00', // =5am
maxTime: '20:00:00', //=8pm
step: '5' //= 5 min intervals

});
});
});

}

*/

1 Like