This topic is locked

Conditional inline edit versus display field

3/12/2009 1:48:51 PM
PHPRunner General questions
M
MikeB941 author

PHPRUNNER 5.0 BUILD 766
I have a field on my list page which is a URL to a picture from a foreign website.
The field is set to view as an image and edit as text (works brilliantly).
Sometimes when the record is setup initially, we don't have the URL for the foreign picture at that time and we have to go back and in-line edit it later, BUT, once the URL is entered it should NOT be allowed to be changed.
So my question is - for an inline edit - can I test the current value of the URL field to see if it's valid (i.e. ending in .jpg and looking like a real URL) and if so MAKE THAT FIELD DISPLAY AS AN IMAGE (NON-EDITABLE) DURING THE IN-LINE EDIT and only open the editable text field if it doesn't contain a valid picture URL.
Thanks so much for any thoughts on this! Take Care... Mike.

J
Jane 3/13/2009

Mike,
unfortunately there is no easy way to hide record on the list page (for Inline Edit).

You need to find ID of edited record and set up this control as disabled manually. This task requires some custom coding. You should be familiar with JavaScript for that.