IOL Refresh a specific field. is it possible?
function makePasswd() { var passwd = ''; var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'; for (i = 0; i<16; i++) { var c = Math.floor(Math.random() * chars.length + 1); passwd += chars.charAt(c) } return passwd; } $("#_fid_18").val(makePasswd());
i already tried changing the i<16 to i=16 and that basically crashed the form. it wouldn't load. but now it sometimes generates 15 or 17 or 14 its always different i need it to be 15 characters at all times.
I kinda gave up trying to get this to work so i'm wondering if there's a way to refresh a specific field but not refreshing the entire page. So that people can just spam click this button until they get a 15 character random code. also i've got a Length formula for the field its generating on so to make sure its 15 (Sadly it only works if the value is refreshed by Highlighting the value, cutting, clicking out of it and pasting it back in)
I just tried adding this into a rich text field
but it ended up just refreshing the entire page.
I rarely ask for help lol, unless i'm totally stuck.
------------------------------
Thanks,
Mikail Kote
------------------------------