‏إظهار الرسائل ذات التسميات field. إظهار كافة الرسائل
‏إظهار الرسائل ذات التسميات field. إظهار كافة الرسائل

الأحد، 5 يناير 2014

Business rule fails to clear field value

I followed this tutorial to copy address field values. It works nicely but I got to thinking how can I make this better for my users..should have left well enough alone I know.

So I was thinking what if they selected the check box to copy the address1 fields by mistake out of habit. So I thought that it would be easy enough to just create a second business rule to clear the address2 fields.

Well the clear address rule is not working at all and yes it is activated. I mimicked the tutorial creating another custom field "clear address" then set my business rule that if that field has a value of true the set address2 fields value to "".

Doh it won't accept an empty value. Tried all sorts of gyrations no go. So I created another custom field (this is all in a development vm sandbox) called emptytext. It is a 1 char text field.

I then went back to my business rule and changed it to set the address2 fields to the emptytext field and that didn't work.

Ohh yes the field probably has to be on the form. So I put it on the form and hid it.

Now everything works but is this really the best way to set a text fields value back to empty?

Thank You


View the original article here

الخميس، 26 ديسمبر 2013

UITextView to Mimic UITextField [for basic round corner text field]

I want to have UITextField with multiple lines, after a quick google on this issue I found that I should use TextView so I did switch my code to use UITextView when I want multiple lines. My View still have other one line textField that I want to keep.

To make my TextView looks like TextField, I had to add code to set border and radius, but they look a little bit different on iOS7. Does anyone know:

what is the color for the UITextField border? when both enabled and disabled so I can sent my textview to match it.what is radius of the corner of TextField.what is the background color for UITextField when it is disabled[attached picture shows the text field has lighter shade of grey when it is disabled]? so i can set my text view to the same color when i disable user interaction.

If there is away to keep using textfield for multiline text, I am all ears and i switch to use it.

Best Regards,

enter image description here


View the original article here