Deluge Script

Deluge Script

I am new to ZoHo, and my company has a form setup to input different data. I am trying to setup a workflow to hide certain form fields from which user is logged on. It is not working (either it does not hide the fields or it hides them for everyone). Can someone look and tell me where I have gone wrong. 
This script does not work:
current_user_id = zoho.loginuser;
is_target_user = "someone@somewhere.com";
if(current_user_id == is_target_user)
{
      hide Product_Code;
      hide Is_this_work_order_PCD_controlled;
      hide Person;
      hide The_fault_log_is;
      hide Transfer_1_location;
      hide Table_Inspected;
      hide Transfer_2_date;
      hide Inspector;
      hide Transfer_1_date;
      hide Transfer_2_location;
      hide Customer_Order_Number;
      hide Customer_Name;
      hide Customer_Part_Number;
      hide Location_after_packaging;
      hide Specification_revision;
      hide Fabric_Batch;
      hide Warp_tension_end_of_roll;
      hide Picks_minute;
      hide Inspector_Comments;
      hide Inspection_date;
      hide Table_Inspected;
      hide Packaging_Date;
      hide Inspection_stamp;
      hide doc1_Rev1;
}

This one hides the info from all users:
current_user_id = "someone";
hide Product_Code;
hide Is_this_work_order_PCD_controlled;
hide Weaver;
hide The_fault_log_is;
hide Transfer_1_location;
hide Table_Inspected;
hide Transfer_2_date;
hide Inspector;
hide Transfer_1_date;
hide Transfer_2_location;
hide Customer_Order_Number;
hide Customer_Name;
hide Customer_Part_Number;
hide Location_after_packaging;
hide Specification_revision;
hide Fabric_Batch;
hide Warp_tension_end_of_roll;
hide Picks_minute;
hide Inspector_Comments;
hide Inspection_date;
hide Table_Inspected;
hide Packaging_Date;
hide Inspection_stamp;
hide doc1_Rev1;

Thanks in advance!
    • Sticky Posts

    • Share your success story

      We would like to hear from our passionate users how much Zoho Creator has changed the way you work and benefited you. If you would like to share your story to us and be featured as a proud user of Zoho Creator, then this is for you. Fill up the form below and if you want to be included in a case study, we will get in touch with you to get further details. So what are you waiting for? Tell us your story. Charles
    • Merge and Store v1 API depreciation

      Hi Zoho Writer users, The Merge and Store v1 API allows you to store the merged document in Zoho WorkDrive. The response of this API will be returned with the document's ID only after the merge is complete. In Deluge, the maximum timeout for operation
    • Zoho Creator Developer's Conference 2017 !!!

      We welcome all our Creator Developers! You're invited to join us for our annual Zoholics Developers conference August 29th–31st! This is your chance to get training and guidance on Zoho Creator from our most knowledgeable custom app builders.       Zoholics Developers is a three-day event where you'll participate in interactive workshops to hone your app-building skills, get questions answered by Creator experts with personal one-on-one sessions, and connect with other Creator developers from around