function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
udayarangareddy mekalaudayarangareddy mekala 

DEVELOPMENT1

Hi
    My Scenrio is i m having one picklist field with values are X,Y,Z and W and one dependent text field is there.whenever i was select the W value in the picklist ,text field was populating after that i entered some text and saving the page upto its fine.The problem is whenever i was going to EDIT the page the picklist field value i was changing from W to X,the test field value didint erase. Thetest field value should come blank.
  
 THANKS
RANGA
Tarun_KhandelwalTarun_Khandelwal
Hi Ranga,

Please add onChange event on picklist and clear the text box data by JavaScript by getting its Id. Let me know in case of any query.
udayarangareddy mekalaudayarangareddy mekala
Thanks Tarun
   I m having the code.which part of code i m going to clear text box data.



Thanks
RANGA
Tarun_KhandelwalTarun_Khandelwal
Please copy paste your code.
Miroslav SmukovMiroslav Smukov
Hi Ranga,

Can you share your Visualforce code with us so we can help you out better? At least share the part of the code that populates the text field when you pick a value from the picklist.

Thanks.
udayarangareddy mekalaudayarangareddy mekala
Tell me explanation
Thanks
RANGA