Forum Discussion
4 Replies
- Kate_MarshIdeator II
Hi Hkhan,
In the Form Editor, you can disable all the fields by default, then enable the one field using a method. Under the Field Physical tab, check the Disabled checkbox for each field. Then in the Form Event tab, add an onLoad Method to enable the chosen field. The code for the Method should look like:
var input = getFieldByName("field_name");
input.getElementsByTagName("input")[0].disabled = false;Best,
Kate
- silje_dahlIdeator II
Hello Kate_Marsh, is there a function for getting a list of all fields?
- Former MemberNot applicable
To disable all form elements inside 'target', use the :input selector which matches all input, textarea, select and button elements. $("#target :input"). prop("disabled", true)
- jonkilIdeator I
Stardew Valley has seen more success than most games made by dozens, or even hundreds, of people could ever hope to achieve. Get to know is stardew valley multiplayer cross platform here.