Field Sequence

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
mpescara
User
Posts: 1

Field Sequence

Post by mpescara »

in the add page, it is possible to select in the sequence of fields 1 field as default?
when the Add page is loaded I have to make a specific field active
thank you


JerryACSA
User
Posts: 15

Post by JerryACSA »

You can put this in Client Scripts, Table-Specific, Add/Copy Page to automatically make the field named Notes active (change as needed):
$('#x_Notes').focus();

However, when I tried it on v2022 and Chrome, it did make the Notes field active but the focus changed back to the first field as the page finished loading. I hope this helps point you in the right direction but it needs something else to work properly, or it might work on another version or browser.

I found the idea here:
viewtopic.php?f=7&t=51994

Another easy solution would be to move the field you need active to be first at the top of the page by dragging its icon on the Fields tab, if it's OK to change the order.


darkdragon
User
Posts: 150

Post by darkdragon »

Go to the demo site, here: http://aspnet.hkvstore.com/modelsadd (need to login first) and test this in browser's console:

$('#r__Model').each(function(e) {$(this).prependTo($(this).parent())});

I just moved the Model field as the first row in the form


Post Reply