Set hidden fields in Create window and send it to server
Set hidden fields in Create window and send it to server
I have a field in my create window, but I need to hide that field. Once I hide it the information is not passing to the server. I have tried this:
this is the variable in the main screen to set the value
var typeId = $('#Id').val();
this is my field in editor (Create)
, {
label: "Type Id:",
name: "TypeId",
type: "hidden"
}
//Set TypeId for new entries
editor.on('open', function () {
//set values
$('#DTE_Field_TypeId').val(typeId);
//hide fields
editor.field('TypeId').hide();
});
Everything is working until I set hidden to the field.
How can I solved this issue.
Thanks,
Wilson
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
It should still be getting set to the server like that. Could you give me a link to the page so I can see exactly what is happening please.
Thanks,
Allan
It is an intranet development. But I finally solved it.
Thanks,
Wilson