Hi everyone this is my latest problem and I hope someone can assist me
All I want to achieve is have a field in a form with a button to link to another form that has various options to get the end result of a category id.
so far so good its all working and passing the variable back to the form and the correct category is shown.
now my problem is in scriptcase the ‘edit button’ / link will only work with a select dropdown. but in this instance I actually don’t need the option to select I just want the edit button/link and to show the name only.
so far I have done this and I am struggling to get any further. in the javascript form>onload i put this code.
function sc_form_onload()
{
$(’#fldedt_id_category_default’).text(‘Choose’);
var cat = $( “#id_sc_field_id_category_default” ).text(); $("#id_sc_field_id_category_default").css(‘display’,‘none’); $("#idAjaxSelect_id_category_default").text(cat);
$("#id_sc_field_id_category_default").change(function(){ $("#idAjaxSelect_id_category_default").text($( “#id_sc_field_id_category_default” ).text()); });
}
all I get is the name showing from the initial loading and nothing changes.
I really wish scriptcase would make it possible to add a button to a field. I love this software but sometimes you get stuck on such a simple thing.
can anyone help ?


