IOL Refresh a specific field. is it possible?
Okay so i added a sort of RNG which we need 15 characters of (this is another issue i have i cannot for the life of me find a way to have it only generate 15 characters this is the formula i have at the moment for the rng) 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 ------------------------------1View1like2Comments