fiogf49gjkf0d Naili:
This is exactly why I asked what type of Forms.
Unfortunately, when you look at a QuickForm within the App Architec, it is an XML Document that tells the Architect how to Generate an ASCX file.
So, in theory you could go into the Deployed site (if not compiled) and apply your changes directly, but keep in mind that next deployment your changes will be gone.
A quick way to achieve what you want easily (but risking affecting other pages) is to add your JavaScript to the Master Page. Now, that means that your script will run on every single page on the System, so you would have to add code to ensure it is the right control and the right page (I wouldn't recommend this method).
Another Method is to convert your form to a Custom Form and then adding your code on it, but you would still need to use C# to register your script. Remember that these are WebParts, and there are issues with JS when the Part is not Shown when a Page loads (for Tabs) or if it is a Dialog, so your script may not work as expected.
Also, as Stated, the SLX Controls are Composite Controls, so even if you were to get a reference to the TextBox for a given control and change its value, it may not be reflected on the Database as the control may actually use hidden fields to track its actual values.
Sorry if it sounds like I am giving you hard ways to get it done, I am just trying to make you aware of the Complexities involved on making such change. |